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_
traceparent transport-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.