[−][src]Trait opentelemetry::api::trace::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 HttpB3Propagator
[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.