What does the W3C `traceparent` header look like?
IntermediateConceptTracing & OpenTelemetry
Answer
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
│ │ │ │
│ trace-id (16 bytes hex) parent-id (8 b) flags (01 = sampled)
version
tracestate: vendor1=opaqueValue,vendor2=xyz
traceparent carries the identity and sampling decision; tracestate carries vendor-specific data in a list that every hop must forward. W3C Trace Context is the default propagator in OpenTelemetry and replaces older formats like Zipkin B3 (X-B3-TraceId) and Jaeger's uber-trace-id. If any proxy or gateway in the path strips unknown headers, the trace breaks into pieces at that hop.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhat is OpenTelemetry and what are its main parts?BeginnerWhy does OpenTelemetry separate the API from the SDK?Advanced