Expand description
Context propagation for distributed tracing.
This module provides utilities for propagating trace context across service boundaries using W3C Trace Context and Baggage standards.
Structs§
- Baggage
Item - Baggage item for propagating additional context.
- Header
Carrier - A carrier for injecting and extracting trace context from HTTP headers.
Functions§
- context_
with_ span - Creates a new context with the current span.
- extract_
context - Extracts trace context from a carrier.
- extract_
from_ headers - Extracts trace context from HTTP headers.
- get_
baggage - Gets baggage value from context.
- inject_
context - Injects the current trace context into a carrier.
- inject_
into_ headers - Injects trace context into HTTP headers.
- propagate_
context - Propagates context across async task boundaries.
- with_
baggage - Adds baggage to the current context.
- with_
context - Attaches a context for the duration of the async function.