Struct opentelemetry_zipkin::Propagator
source · pub struct Propagator { /* private fields */ }
Expand description
Extracts and injects SpanContext
s into Extractor
s or Injector
s using B3 header format.
Implementations§
source§impl Propagator
impl Propagator
sourcepub fn with_encoding(encoding: B3Encoding) -> Self
pub fn with_encoding(encoding: B3Encoding) -> Self
Create a new HttpB3Propagator
that uses encoding
as encoding method
Trait Implementations§
source§impl Clone for Propagator
impl Clone for Propagator
source§fn clone(&self) -> Propagator
fn clone(&self) -> Propagator
Returns a copy 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 Propagator
impl Debug for Propagator
source§impl Default for Propagator
impl Default for Propagator
source§impl TextMapPropagator for Propagator
impl TextMapPropagator for Propagator
source§fn inject_context(&self, context: &Context, injector: &mut dyn Injector)
fn inject_context(&self, context: &Context, injector: &mut dyn Injector)
Properly encodes the values of the Context
’s 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 data using the provided Extractor
. If no data for this
format was retrieved OR if the retrieved data is invalid, then the current
Context
is returned.
source§fn fields(&self) -> FieldIter<'_>
fn fields(&self) -> FieldIter<'_>
Returns iter of fields used by
TextMapPropagator
Auto Trait Implementations§
impl RefUnwindSafe for Propagator
impl Send for Propagator
impl Sync for Propagator
impl Unpin for Propagator
impl UnwindSafe for Propagator
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