Skip to main content

Module propagation

Module propagation 

Source
Available on crate feature transport only.
Expand description

§Trace Context Propagation

W3C Trace Context (traceparent) helpers for automatic context propagation across transport boundaries. When the otel feature is enabled, transports inject/extract traceparent headers transparently.

Format: 00-{trace_id}-{span_id}-{flags} Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01

Constants§

TRACEPARENT_HEADER
W3C traceparent header name.

Functions§

current_traceparenttransport-trace
Format a W3C traceparent header value from the current OTel span context.
format_traceparent_raw
Format a traceparent string from raw components (for testing without OTel).
is_valid_traceparent
Validate that a string looks like a well-formed traceparent header.