OpenTelemetry — Intermediate
Context propagation across process boundaries, in detail
Within a single process, propagating trace context is just passing a value through function calls or a language-specific context object. Across a network call, that context has to be serialized into something the next process can read — almost always an HTTP header (or an equivalent metadata field for gRPC and message queues).
The exact header name and value format are defined by the W3C Trace Context specification, which OTel implements rather than owns — verify the current header syntax against that spec directly rather than from memory, since it is a separate, independently-evolving web standard.
The practical failure mode to watch for: any component sitting between two instrumented services — a proxy, an API gateway, a load balancer — that isn't configured to pass through unrecognized headers will silently drop the propagation header, breaking the trace in two without raising any error. This is usually invisible until someone notices a trace that inexplicably stops at a particular hop.
Baggage: propagating more than just the trace ID
Baggage carries arbitrary key-value pairs alongside the trace context — a tenant ID, a feature-flag variant, a user segment — so a downstream service several hops away can read context set much earlier in the request, without threading it through every intermediate service's own function signatures manually.
Baggage is not free: because it travels on every hop as part of the request's own metadata, adding large or numerous baggage entries adds real overhead to every request in the chain. It's suited to a handful of small, genuinely useful values, not as a general-purpose cross-service data bus.
Resource attributes: describing where telemetry came from
Separate from span/metric-specific attributes, a resource describes the thing producing the telemetry itself — service name, service version, the Kubernetes pod and node it's running on, the cloud region. Resource attributes are attached once per process and automatically included on everything that process emits, rather than being set individually on every span.
Without consistent resource attributes, correlating "which exact pod produced this slow span" during an incident means cross-referencing timestamps by hand instead of filtering directly on an attribute that was already there.
Processors worth knowing beyond batch
The batch processor (group telemetry before exporting, for efficiency) is the one almost every pipeline includes, but several others solve specific real problems:
Multiple pipelines, multiple backends, from one Collector
A single Collector deployment is not limited to one backend per signal. The same traces receiver can feed two separate exporters — sending the same data to a primary backend and a cheaper long-term archive simultaneously — by listing both exporters in that pipeline's exporters array. This is a common pattern during a backend migration: run the old and new destinations in parallel for a period, compare them, then drop the old exporter once the new backend is trusted.

