Struct opentelemetry::sdk::propagation::TraceContextPropagator
source · [−]pub struct TraceContextPropagator { /* private fields */ }
Expand description
Propagates SpanContext
s in W3C TraceContext format.
Implementations
Trait Implementations
sourceimpl Clone for TraceContextPropagator
impl Clone for TraceContextPropagator
sourcefn clone(&self) -> TraceContextPropagator
fn clone(&self) -> TraceContextPropagator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TraceContextPropagator
impl Debug for TraceContextPropagator
sourceimpl Default for TraceContextPropagator
impl Default for TraceContextPropagator
sourcefn default() -> TraceContextPropagator
fn default() -> TraceContextPropagator
Returns the “default value” for a type. Read more
sourceimpl TextMapPropagator for TraceContextPropagator
impl TextMapPropagator for TraceContextPropagator
sourcefn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
Properly encodes the values of the SpanContext
and injects them
into the Injector
.
sourcefn extract_with_context(&self, cx: &Context, extractor: &dyn Extractor) -> Context
fn extract_with_context(&self, cx: &Context, extractor: &dyn Extractor) -> Context
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.
sourcefn fields(&self) -> FieldIter<'_>ⓘNotable traits for FieldIter<'a>impl<'a> Iterator for FieldIter<'a> type Item = &'a str;
fn fields(&self) -> FieldIter<'_>ⓘNotable traits for FieldIter<'a>impl<'a> Iterator for FieldIter<'a> type Item = &'a str;
Returns iter of fields used by
TextMapPropagator
Read moreAuto Trait Implementations
impl RefUnwindSafe for TraceContextPropagator
impl Send for TraceContextPropagator
impl Sync for TraceContextPropagator
impl Unpin for TraceContextPropagator
impl UnwindSafe for TraceContextPropagator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more