Class CompositePropagator¶
Defined in File composite_propagator.h
Class Documentation¶
-
class
opentelemetry::trace::propagation
::
CompositePropagator
: public opentelemetry::trace::propagation::TextMapPropagator¶ Public Functions
-
inline
CompositePropagator
(std::vector<std::unique_ptr<TextMapPropagator>> propagators)¶
-
inline void
Inject
(TextMapCarrier &carrier, const context::Context &context) noexcept override¶ Run each of the configured propagators with the given context and carrier. Propagators are run in the order they are configured, so if multiple propagators write the same carrier key, the propagator later in the list will “win”.
- Parameters
carrier – Carrier into which context will be injected
context – Context to inject
-
inline context::Context
Extract
(const TextMapCarrier &carrier, context::Context &context) noexcept override¶ Run each of the configured propagators with the given context and carrier. Propagators are run in the order they are configured, so if multiple propagators write the same context key, the propagator later in the list will “win”.
- Parameters
carrier – Carrier from which to extract context
context – Context to add values to
-
inline