Skip to content

[APM] Transaction breakdown graph: Add stacked area time series graph #36441

@formgeist

Description

@formgeist

Updates to this design document

20 June, 2019

19 June, 2019

Summary

Links: Related design issue | Meta issue

Adds a time series stacked area chart to the Transactions overview and group detail views. The graphs will show the breakdown of the transactions (sampled and non-sampled) by span.type or, if available, span.subtype. Ultimately this will give the user an overview of what the service and its subsequent transactions are spending their time.

Design

Marvel prototype

The example queries are specified in the Google design doc.

The graph component

The chart itself will be presented in a panel at the top of both views. It will be matched with a KPI (stats) component which displays the span.type and span.subtype percentages and counts according to the data selected (global and local filters applied).

The graph will not feature legends as these will be part of the KPI (stats) component.

Visualization

The graph color assignments will be based on the alphabetical order of the span.type. The span.subtype will inherit its color assignment from span.type, i.e. db is blue, db.elasticsearch and db.mysql are blue, but drawn as separate lines in the graph.

Beta label

We will add a EuiBetaBadge by the title of the chart, which will display a tooltip message.

This feature is still in development. If you have feedback, please reach out in our Discuss forum.

Screenshot 2019-06-20 at 12 41 41

Graph tooltip

The tooltip will include a breakdown of each span.type and span.subtype items with a percentage per time series bucket. Items are sorted alphabetically.

The tooltip will also invoke the tooltips of the transaction duration and transactions per minute graphs in order to allow for comparison as they all three share the same x-axis.

01 - Transactions (stats) expanded with tooltips

Nice to have: Panel toggle

In order to condense the vertical space of the pages, we might benefit from adding a show/hide toggle for displaying the actual graph. Additionally adding the toggle to session storage means that the user's preference will be saved in the session.

Kapture 2019-06-20 at 12 45 16

Screens

Service transactions overview

01 - Transactions (stats) expanded

Tooltips

Please note: The tooltips in the design mockups are lifted from the EUI library, but we still prefer the light themed tooltips found in APM UI today.

01 - Transactions (stats) expanded with tooltips

Example of existing APM UI tooltip styling

Screenshot 2019-05-10 at 15 05 43

Service transaction group detail

02 - Trace detail (stats) expanded

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions