Needed by: 7.9
Summary
Transaction documents should have a boolean flag error which indicates whether the transaction was erroneous or not.
Background
In APM UI we want to add a chart displaying the error rate. Currently we are calculating the rate as the ratio of errors to transactions in a given time range. But since a transaction can have multiple errors and we can have errors outside of transactions we can not calculate it like that.
Solution
A solution would be having a flag on the transaction informing if that transaction is erroneous. And to calculate the Error rate we'd do: total_number_of_transactions_with_errors / total_number_of_transactions in a given time range.
Needed by: 7.9
Summary
Transaction documents should have a boolean flag
errorwhich indicates whether the transaction was erroneous or not.Background
In APM UI we want to add a chart displaying the error rate. Currently we are calculating the rate as the ratio of errors to transactions in a given time range. But since a transaction can have multiple errors and we can have errors outside of transactions we can not calculate it like that.
Solution
A solution would be having a flag on the transaction informing if that transaction is erroneous. And to calculate the Error rate we'd do:
total_number_of_transactions_with_errors / total_number_of_transactionsin a given time range.