Skip to main content

Module trace_context

Module trace_context 

Source
Expand description

Distributed tracing context propagated through wire protocol messages.

Carries W3C-compatible trace and span identifiers for correlating messages across service boundaries. When tracing-opentelemetry is wired in later, current_trace_context will extract IDs from the current span context; until then it generates random trace IDs.

Structs§

TraceContext
Distributed tracing context for correlating messages across service boundaries.

Functions§

current_trace_context
Returns the trace context for the current execution context.