pub struct TraceContextPropagator { /* private fields */ }Available on crate feature
trace only.Expand description
Propagates SpanContexts in W3C TraceContext format.
Implementations§
Trait Implementations§
Source§impl Clone for TraceContextPropagator
impl Clone for TraceContextPropagator
Source§fn clone(&self) -> TraceContextPropagator
fn clone(&self) -> TraceContextPropagator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TraceContextPropagator
impl Debug for TraceContextPropagator
Source§impl Default for TraceContextPropagator
impl Default for TraceContextPropagator
Source§fn default() -> TraceContextPropagator
fn default() -> TraceContextPropagator
Returns the “default value” for a type. Read more
Source§impl TextMapPropagator for TraceContextPropagator
impl TextMapPropagator for TraceContextPropagator
Source§fn 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.
Source§fn extract_with_context(
&self,
cx: &Context,
extractor: &dyn Extractor,
) -> Context
fn extract_with_context( &self, cx: &Context, extractor: &dyn Extractor, ) -> Context
Retrieves encoded SpanContexts 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.
Auto Trait Implementations§
impl Freeze for TraceContextPropagator
impl RefUnwindSafe for TraceContextPropagator
impl Send for TraceContextPropagator
impl Sync for TraceContextPropagator
impl Unpin for TraceContextPropagator
impl UnwindSafe for TraceContextPropagator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace only.