Definition

Context propagation carries execution metadata across process, service, and asynchronous boundaries.

Signals

Why use it

Keep the same trace connected as a request crosses services or enters a queue.

Common use cases

  • Connect HTTP spans.
  • Preserve message context.
  • Enrich logs with the active span.

Benefits

  • Provides the shared context needed for distributed tracing and log correlation.

Limitations

  • Unsupported boundaries break continuity. Baggage can expose sensitive data and is not automatically copied into telemetry attributes.

Practical pattern

Inject and extract compatible trace context at boundaries. Preserve active context in asynchronous execution and allowlist baggage across trust boundaries.

Worked example: Carry context across a boundary

The producer injects context into message metadata. The consumer extracts it and either parents a span or links a new processing trace, depending on the instrumentation design.

What makes this concept different

Propagation carries identifiers; it does not guarantee span recording, export or retention.

Supported by

Documented examples, not an exhaustive compatibility list. Features require suitable instrumentation and configuration; availability can depend on the runtime, backend, and subscription.

  • OpenTelemetry — Propagator APIs inject and extract context across supported boundaries.

Related concepts

Investigation patterns

Related guides

FAQ

Is baggage required for tracing?

No. Trace context connects spans. Baggage carries optional application key-value data and requires separate handling.