pub struct Propagator { /* private fields */ }
Expand description
Propagator
implements the Jaeger propagation format.
See module level documentation for examples.
Implementations§
Source§impl Propagator
impl Propagator
Sourcepub fn with_custom_header(custom_header_name: &'static str) -> Self
pub fn with_custom_header(custom_header_name: &'static str) -> Self
Create a Jaeger propagator with custom header name
Sourcepub fn with_custom_header_and_baggage(
custom_header_name: &'static str,
custom_baggage_prefix: &'static str,
) -> Self
pub fn with_custom_header_and_baggage( custom_header_name: &'static str, custom_baggage_prefix: &'static str, ) -> Self
Create a Jaeger propagator with custom header name and baggage prefix
NOTE: it’ll implicitly fallback to the default header names when the name of provided custom_* is empty
Default header-name is uber-trace-id
and baggage-prefix is uberctx-
The format of serialized contexts and baggages stays unchanged and does not depend
on provided header name and prefix.
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, cx: &Context, injector: &mut dyn Injector)
fn inject_context(&self, cx: &Context, injector: &mut dyn Injector)
Source§fn fields(&self) -> FieldIter<'_>
fn fields(&self) -> FieldIter<'_>
Returns iter of fields used by
TextMapPropagator
Auto Trait Implementations§
impl Freeze for Propagator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)