Trait opentelemetry::propagation::text_map_propagator::TextMapPropagator [−][src]
pub trait TextMapPropagator: Debug { fn inject_context(&self, cx: &Context, injector: &mut dyn Injector); fn extract_with_context(
&self,
cx: &Context,
extractor: &dyn Extractor
) -> Context; fn fields(&self) -> FieldIter<'_>ⓘ; fn inject(&self, injector: &mut dyn Injector) { ... } fn extract(&self, extractor: &dyn Extractor) -> Context { ... } }
Expand description
Methods to inject and extract a value as text into injectors and extractors that travel in-band across process boundaries.
Required methods
fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
[src]
fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
[src]fn extract_with_context(
&self,
cx: &Context,
extractor: &dyn Extractor
) -> Context
[src]
fn extract_with_context(
&self,
cx: &Context,
extractor: &dyn Extractor
) -> Context
[src]Provided methods
Implementors
trace
only.Encodes the values of the Context
and injects them into the provided Injector
.
Extracts a Context
with baggage values from a Extractor
.
trace
only.Encodes the values of the Context
and injects them into the Injector
.
Retrieves encoded Context
information using the Extractor
. If no data was
retrieved OR if the retrieved data is invalid, then the current Context
is
returned.
trace
only.Properly encodes the values of the SpanContext
and injects them
into the Injector
.
Retrieves encoded SpanContext
s using the Extractor
. 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.