Skip to main content

Module trace

Module trace 

Source
Expand description

W3C Trace Context propagation, the identifiers the proxy continues from an incoming request and forwards to every downstream call so the upstream’s spans join the same distributed trace (docs/05 §2, OTel).

Shape-only by construction. A TraceContext holds only opaque trace and span ids, correlation identity, never tenant values, bodies, or secrets. The ids are derived from the request id (not from request data), so propagation cannot become a value-leak channel.

Structs§

TraceContext
A W3C trace context: the distributed-trace identity the proxy propagates downstream. Continued from an incoming traceparent when present (preserving the trace_id so the trace stays connected end-to-end), or minted as a new root when absent. Either way a fresh span_id identifies this hop, so the upstream call is recorded as a child of the proxy’s span.