Kibana: [APM] Use the outcome field to calculate the transaction error rate chart

Created on 6 Aug 2020  路  8Comments  路  Source: elastic/kibana

For 7.10 the agent team are working on a new field called outcome (https://github.com/elastic/apm/pull/299) which will be available on the Transaction and Span indices. The field represents a success or a failure transaction or span.

Possible results:

  • "failure": Indicates that this transaction describes a failed result
  • "success": Indicates that this transaction describes a successful result.
  • "unknown": Indicates that there's no information about the outcome. (Won't be counted as error)

Solution
total_number_of_transactions_with_errors / total_number_of_transactions

Fallback:
Should we consider keep the current implementation as a fallback in case of the field is not available?

apm blocked v7.10.0

All 8 comments

Pinging @elastic/apm-ui (Team:apm)

Blocked until the agents have implemented the new field.

@beniwohli is working on the reference implementation for elastic/apm#299

@cauemarcondes and @beniwohli please sync up to ensure we have a smooth end-to-end experience.

I think this issue is unblocked now that we have specified that we'll use event.outcome to determine whether or not an event is a failure.

While testing against real data is important, I don't think it blocks the UI implementation. You could fake the data by setting the event.outcome on existing documents.

@felixbarny can you confirm that I'll need to use both Transaction and Span indices to calculate the error rate since both will have event.outcome?

No, to calculate the error rate you only have to account for the transaction errors.

The reason is that a transaction can be successful in spite of having an erroneous span. For example, if an API call failed but the server successfully retried or used a fallback.

No, to calculate the error rate you only have to account for the transaction errors.

Cool, thanks for the explanation.

And about the RUM agent (As there's no browser API to get the status code of a page load, the RUM agent always reports"unknown"for those transactions.), should I hide the error rate on its page?

That鈥檚 only true for pageload transactions, not Ajax calls. So I wouldn鈥檛 hide it. Plus, users may use the API to even mark a pageload transaction as failed.

Was this page helpful?
0 / 5 - 0 ratings