IT lexicon › Infra & Ops › Trace context

Trace context

Infra & Ops På svenska → Updated: 2026-11-14

Standard for propagating trace IDs and metadata across services — W3C Trace Context and OpenTelemetry baggage.

When a request flows through 10 microservices, all spans must be linked back to the same trace. Trace context is HTTP headers (or gRPC metadata) carried along: trace ID, span ID, parent span ID, sampling decision. The W3C Trace Context specification from 2020 is the standard; OpenTelemetry adds baggage to propagate local context like user ID, tenant ID, or feature flags.

Without trace context, distributed debugging is a nightmare — you can't follow a single request through the system. With it, you see exactly where latency originates, what failed, and why a specific user had problems.

← Back to the lexicon