[−][src]Trait opentelemetry::api::propagation::text_propagator::HttpTextFormat
is used to inject and extract a value as text into carriers that travel in-band across process boundaries.
Required methods
fn inject(&self, context: SpanContext, carrier: &mut dyn Carrier)
Properly encodes the values of the SpanContext
and injects them
into the Carrier
.
fn extract(&self, carrier: &dyn Carrier) -> SpanContext
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.
Implementors
impl HttpTextFormat for NoopTextFormat
[src]
fn inject(&self, _context: SpanContext, _carrier: &mut dyn Carrier)
[src]
Ignores calls to inject
fn extract(&self, _carrier: &dyn Carrier) -> SpanContext
[src]
Always returns invalid span contexts
impl HttpTextFormat for B3Propagator
[src]
fn inject(&self, context: SpanContext, carrier: &mut dyn Carrier)
[src]
Properly encodes the values of the SpanContext
and injects them
into the Carrier
.
fn extract(&self, carrier: &dyn Carrier) -> SpanContext
[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.
impl HttpTextFormat for TraceContextPropagator
[src]
fn inject(&self, context: SpanContext, carrier: &mut dyn Carrier)
[src]
Properly encodes the values of the SpanContext
and injects them
into the Carrier
.
fn extract(&self, carrier: &dyn Carrier) -> SpanContext
[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.