NVIDIA DeepStream SDK API Reference

9.2 Release
context::propagation::CompositePropagator Class Reference

Detailed Description

Inheritance diagram for context::propagation::CompositePropagator:
Collaboration diagram for context::propagation::CompositePropagator:

Public Member Functions

 CompositePropagator (std::vector< std::unique_ptr< TextMapPropagator >> propagators)
 
void Inject (TextMapCarrier &carrier, const context::Context &context) noexcept override
 Run each of the configured propagators with the given context and carrier. More...
 
context::Context Extract (const TextMapCarrier &carrier, context::Context &context) noexcept override
 Run each of the configured propagators with the given context and carrier. More...
 
bool Fields (nostd::function_ref< bool(nostd::string_view)> callback) const noexcept override
 Invoke callback with fields set to carrier by inject method for all the configured propagators Returns true if all invocation return true. More...
 
 CompositePropagator (std::vector< std::unique_ptr< TextMapPropagator >> propagators)
 
void Inject (TextMapCarrier &carrier, const context::Context &context) noexcept override
 Run each of the configured propagators with the given context and carrier. More...
 
context::Context Extract (const TextMapCarrier &carrier, context::Context &context) noexcept override
 Run each of the configured propagators with the given context and carrier. More...
 
bool Fields (nostd::function_ref< bool(nostd::string_view)> callback) const noexcept override
 Invoke callback with fields set to carrier by inject method for all the configured propagators Returns true if all invocation return true. More...
 

Constructor & Destructor Documentation

◆ CompositePropagator() [1/2]

context::propagation::CompositePropagator::CompositePropagator ( std::vector< std::unique_ptr< TextMapPropagator >>  propagators)
inline

◆ CompositePropagator() [2/2]

context::propagation::CompositePropagator::CompositePropagator ( std::vector< std::unique_ptr< TextMapPropagator >>  propagators)
inline

Member Function Documentation

◆ Extract() [1/2]

context::Context context::propagation::CompositePropagator::Extract ( const TextMapCarrier &  carrier,
context::Context &  context 
)
inlineoverridevirtualnoexcept

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
carrierCarrier from which to extract context
contextContext to add values to

Implements context::propagation::TextMapPropagator.

Definition at line 53 of file includes/opentelemetry/context/propagation/composite_propagator.h.

◆ Extract() [2/2]

context::Context context::propagation::CompositePropagator::Extract ( const TextMapCarrier &  carrier,
context::Context &  context 
)
inlineoverridevirtualnoexcept

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
carrierCarrier from which to extract context
contextContext to add values to

Implements context::propagation::TextMapPropagator.

Definition at line 53 of file 9.2/includes/opentelemetry/context/propagation/composite_propagator.h.

◆ Fields() [1/2]

bool context::propagation::CompositePropagator::Fields ( nostd::function_ref< bool(nostd::string_view)>  callback) const
inlineoverridevirtualnoexcept

Invoke callback with fields set to carrier by inject method for all the configured propagators Returns true if all invocation return true.

Implements context::propagation::TextMapPropagator.

Definition at line 78 of file 9.2/includes/opentelemetry/context/propagation/composite_propagator.h.

◆ Fields() [2/2]

bool context::propagation::CompositePropagator::Fields ( nostd::function_ref< bool(nostd::string_view)>  callback) const
inlineoverridevirtualnoexcept

Invoke callback with fields set to carrier by inject method for all the configured propagators Returns true if all invocation return true.

Implements context::propagation::TextMapPropagator.

Definition at line 78 of file includes/opentelemetry/context/propagation/composite_propagator.h.

◆ Inject() [1/2]

void context::propagation::CompositePropagator::Inject ( TextMapCarrier &  carrier,
const context::Context &  context 
)
inlineoverridevirtualnoexcept

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
carrierCarrier into which context will be injected
contextContext to inject

Implements context::propagation::TextMapPropagator.

Definition at line 36 of file 9.2/includes/opentelemetry/context/propagation/composite_propagator.h.

◆ Inject() [2/2]

void context::propagation::CompositePropagator::Inject ( TextMapCarrier &  carrier,
const context::Context &  context 
)
inlineoverridevirtualnoexcept

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
carrierCarrier into which context will be injected
contextContext to inject

Implements context::propagation::TextMapPropagator.

Definition at line 36 of file includes/opentelemetry/context/propagation/composite_propagator.h.


The documentation for this class was generated from the following file: