Description
We received feedback on our new X-Trace-Id
response header support for Spring Boot 3.5 (see #40857). Instead of using an X-
header we could be considering one of the currently developed drafts.
It seems both traceresponse
and Server-Timing
are being considered at the moment, with no clear guidance from the observability community. As far as I understand, Server-Timing
has the following priorities:
This specification enables a server to communicate performance metrics about the request-response cycle to the user agent. It also standardizes a JavaScript interface to enable applications to collect, process, and act on these metrics to optimize application delivery.
Browsers can use this header to include its information in their "Developer tools" tabs to give the full picture of the web page performance: from backend activity to resource loading and HTML rendering. The traceId information would only be useful if this UI is also capable of retrieving and rendering the full trace information in the same context.
I think we'll go with the traceresponse
header and the related format, as its main goal is to identify a completed request in a tracing system
, which better aligns with our intent here.