Aggregate Traces and Sankey Views

If your familiar with funnel analysis from web/mobile product analytics such as in Mixpanel and Amplitude, you notice some similarities between funnel analysis and Moesif’s traces and sankey views. Think of these Moesif views as reverse funnel analysis of your API errors to trace across multiple isolated business transactions.

The last API call in the sequence is the error, while the others are API calls that lead up to the error. This is then aggregated so you can identify trends driving the error across multiple traces.

Traces Views

The below aggregate trace view is for a 500 error on POST /likes.

  • The red boxes is the actual 5xx error
  • The green boxes are API calls with 20x OK that lead up to the error.
  • The grey circle specifies the number of sampled traces that took the particular path

aggregate traces chart of triaged API errors

You can click on a row to bring up individual HTTP traces for a particular session or API token.

Sankey Views

Sankey is similar to the traces view. Sankey charts plot multiple traces on the same graph. The wider the path, the higher number of errors that took that path. The below sankey chart explores an error on GET /widgets/:id, and works backwards to see most taken paths.

Sankey chart of triaged API errors

Updated:

Leave a Comment