[][src]Trait opentelemetry::api::trace::propagator::HttpTextFormat

pub trait HttpTextFormat {
    fn inject(&self, context: SpanContext, carrier: &mut dyn Carrier);
fn extract(&self, carrier: &dyn Carrier) -> SpanContext; }

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 SpanContexts 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.

Loading content...

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 SpanContexts 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.

Loading content...