Module opentelemetry::propagation
source · Expand description
§OpenTelemetry Propagator interface
Cross-cutting concerns send their state to the next process using Propagators, which are defined as objects used to read and write context data to and from messages exchanged by the applications.
Propagator
s leverage the Context
to inject and extract data for each cross-cutting concern,
such as TraceContext
and Baggage
.
The Propagators API is expected to be leveraged by users writing instrumentation libraries.
Currently, the following Propagator
types are supported:
TextMapPropagator
, inject values into and extracts values from carriers as string key/value pairs
A binary Propagator type will be added in the future, See tracking issues).
Propagator
s uses Injector
and Extractor
to read and write context data to and from messages.
Each specific Propagator type defines its expected carrier type, such as a string map or a byte array.
Re-exports§
pub use composite::TextMapCompositePropagator;
pub use text_map_propagator::TextMapPropagator;
Modules§
- Composite Propagator
- TextMapPropagator
Structs§
- Error when extracting or injecting context data(i.e propagating) across application boundaries.
Traits§
- Extractor provides an interface for removing fields from an underlying struct like
HashMap
- Injector provides an interface for adding fields from an underlying struct like
HashMap