[−][src]Trait opentelemetry::api::context::propagation::text_propagator::HttpTextFormat
Methods to inject and extract a value as text into carriers that travel in-band across process boundaries.
Required methods
fn inject_context(&self, cx: &Context, carrier: &mut dyn Carrier)
fn extract_with_context(&self, cx: &Context, carrier: &dyn Carrier) -> Context
Provided methods
Loading content...Implementors
impl HttpTextFormat for HttpTextCompositePropagator
[src]
fn inject_context(&self, context: &Context, carrier: &mut dyn Carrier)
[src]
Encodes the values of the Context
and injects them into the Carrier
.
fn extract_with_context(&self, cx: &Context, carrier: &dyn Carrier) -> Context
[src]
Retrieves encoded Context
information using the Carrier
. If no data was
retrieved OR if the retrieved data is invalid, then the current Context
is
returned.
impl HttpTextFormat for CorrelationContextPropagator
[src]
fn inject_context(&self, cx: &Context, carrier: &mut dyn Carrier)
[src]
Encodes the values of the Context
and injects them into the provided Carrier
.
fn extract_with_context(&self, cx: &Context, carrier: &dyn Carrier) -> Context
[src]
Extracts a Context
with correlation context values from a Carrier
.
impl HttpTextFormat for B3Propagator
[src]
fn inject_context(&self, context: &Context, carrier: &mut dyn Carrier)
[src]
Properly encodes the values of the Context
's SpanContext
and injects
them into the Carrier
.
fn extract_with_context(&self, cx: &Context, carrier: &dyn Carrier) -> Context
[src]
Retrieves encoded data using the provided Carrier
. If no data for this
format was retrieved OR if the retrieved data is invalid, then the current
Context
is returned.
impl HttpTextFormat for TraceContextPropagator
[src]
fn inject_context(&self, context: &Context, carrier: &mut dyn Carrier)
[src]
Properly encodes the values of the SpanContext
and injects them
into the Carrier
.
fn extract_with_context(&self, cx: &Context, carrier: &dyn Carrier) -> Context
[src]
Retrieves encoded SpanContext
s using the Carrier
. It decodes
the SpanContext
and returns it. If no SpanContext
was retrieved
OR if the retrieved SpanContext is invalid then an empty SpanContext
is returned.