QuickDevGuide

Home › OpenTelemetry (Observability)

Context Propagation (W3C Trace Context) — OpenTelemetry (Observability)

A distributed trace only works if every service passes the trace context to the next one. OpenTelemetry uses the W3C traceparent header by default: Piece Purpose Propagator injects/extracts context into carriers (HTTP headers, message headers) tracestate vendor-specific data alongside traceparent Baggage user-defined key/values that travel with the request (tenant.id) Instrumentation libraries for HTTP clients/servers, gRPC and many messaging clients propagate automatically. For anything custom (queues, background jobs, raw sockets) you inject on send and extract on receive yourself. Baggage is sent to every downstream service — never put secrets or personal data in it.

Key Takeaways