Struct opentelemetry::sdk::propagation::TraceContextPropagator [−][src]
pub struct TraceContextPropagator { /* fields omitted */ }
This is supported on crate feature
trace
only.Propagates SpanContext
s in W3C TraceContext format.
Implementations
Trait Implementations
impl Clone for TraceContextPropagator
[src]
impl Clone for TraceContextPropagator
[src]fn clone(&self) -> TraceContextPropagator
[src]
fn clone(&self) -> TraceContextPropagator
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TraceContextPropagator
[src]
impl Debug for TraceContextPropagator
[src]impl Default for TraceContextPropagator
[src]
impl Default for TraceContextPropagator
[src]fn default() -> TraceContextPropagator
[src]
fn default() -> TraceContextPropagator
[src]Returns the “default value” for a type. Read more
impl TextMapPropagator for TraceContextPropagator
[src]
impl TextMapPropagator for TraceContextPropagator
[src]fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
[src]
fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
[src]Properly encodes the values of the SpanContext
and injects them
into the Injector
.
fn extract_with_context(
&self,
cx: &Context,
extractor: &dyn Extractor
) -> Context
[src]
fn extract_with_context(
&self,
cx: &Context,
extractor: &dyn Extractor
) -> Context
[src]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.
Auto Trait Implementations
impl RefUnwindSafe for TraceContextPropagator
impl Send for TraceContextPropagator
impl Sync for TraceContextPropagator
impl Unpin for TraceContextPropagator
impl UnwindSafe for TraceContextPropagator
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,