Module propagation
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.
Modules§
- Composite Propagator
- TextMapPropagator
Structs§
- Error when extracting or injecting context data(i.e propagating) across application boundaries.
- Composite propagator for
TextMapPropagator
s.
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
- Methods to inject and extract a value as text into injectors and extractors that travel in-band across process boundaries.