opentelemetry.propagators.composite
Module contents
- class opentelemetry.propagators.composite.CompositePropagator(propagators)[source]
Bases:
TextMapPropagator
CompositePropagator provides a mechanism for combining multiple propagators into a single one.
- Parameters:
propagators (
Sequence
[TextMapPropagator
]) – the list of propagators to use
- extract(carrier, context=None, getter=<opentelemetry.propagators.textmap.DefaultGetter object>)[source]
Run each of the configured propagators with the given context and carrier. Propagators are run in the order they are configured, if multiple propagators write the same context key, the propagator later in the list will override previous propagators.
See opentelemetry.propagators.textmap.TextMapPropagator.extract
- Return type:
- inject(carrier, context=None, setter=<opentelemetry.propagators.textmap.DefaultSetter object>)[source]
Run each of the configured propagators with the given context and carrier. Propagators are run in the order they are configured, if multiple propagators write the same carrier key, the propagator later in the list will override previous propagators.
See opentelemetry.propagators.textmap.TextMapPropagator.inject
- Return type:
- class opentelemetry.propagators.composite.CompositeHTTPPropagator(propagators)[source]
Bases:
CompositePropagator
CompositeHTTPPropagator provides a mechanism for combining multiple propagators into a single one.