Skip to content

[Discover][APM] Better formatting for span/transaction duration fields by default #217886

Closed
elastic/elasticsearch
#129418
@Bluefinger

Description

@Bluefinger

Currently, the default formatting for span.duration.us and transaction.duration.us fields is just basic numeric formatting, and also in the APM static data view, only the transaction duration field gets formatted to milliseconds.

These fields should be getting formatted as durations by default instead of as numeric values, as this would improve the experience of seeing the different durations be attached to a meaningful unit of time (ns, ms, etc).

Description
AC1 When displaying a span.duration.us field, it should get formatted with the appropriate unit depending on how long it took (1000 microseconds duration could be rendered as 1ms)
AC2 When displaying a transaction.duration.us field, it should get formatted with the appropriate unit depending on how long it took (1000 microseconds duration could be rendered as 1ms)
AC3 The formatting should apply regardless of the data view (if it isn't applying a formatting to override the default) or ES|QL view, and should apply on both the doc viewer table and the discover table

Metadata

Metadata

Assignees

Labels

Team:obs-ux-infra_servicesObservability Infrastructure & Services User Experience TeamenhancementNew value added to drive a business result

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions