[APM] Make timestamp.us
optional and fall back to @timestamp
#191046
Labels
apm:opentelemetry
APM UI - OTEL Work
apm
blocked
enhancement
New value added to drive a business result
OpenTelemetry
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
Today, the APM UI mostly relies on the
timestamp.us
field to place spans more accurately on the waterfall, and to support traces that take less than a millisecond.We want to move the
@timestamp
field to usedate_nanos
instead ofdate
, so that the additionaltimestamp.us
field becomes redundant.In the context of supporting OTel-native mappings, we'd like to transition to relying just on
@timestamp
but use thedate_nanos
field type for it. As a short-term workaround, we're addingattributes.timestamp.us
but would like to remove this APM-specific field. During the transitioning period, we'll have a mix ofdate_nanos
and@timestamp
fields as we're waiting for ES|QL to support thedate_nanos
field type. While we'll likely also want to usedate_nanos
for data that goes in via APM Server, there's also expected to be a difference where OTel data will usedate_nanos
for the@timestamp
field first.I'm proposing the following fallback logic:
timestamp.us
is missing, fall back to@timestamp
, no matter whether it's of typedate
ordate_nanos
@timestamp
is of typedate_nanos
, prefer@timestamp
overtimestamp.us
The text was updated successfully, but these errors were encountered: