pub struct BaggageItem { /* private fields */ }Expand description
Baggage item.
BaggageItems are key:value string pairs that apply to a Span, its SpanContext,
and all Spans which directly or transitively reference the local Span.
That is, BaggageItems propagate in-band along with the trace itself.
BaggageItems enable powerful functionality given a full-stack OpenTracing integration
(for example, arbitrary application data from a mobile app can make it, transparently,
all the way into the depths of a storage system),
and with it some powerful costs: use this feature with care.
Use this feature thoughtfully and with care.
Every key and value is copied into every local and remote child of the associated Span,
and that can add up to a lot of network and cpu overhead.
Implementations§
Trait Implementations§
Source§impl Clone for BaggageItem
impl Clone for BaggageItem
Source§fn clone(&self) -> BaggageItem
fn clone(&self) -> BaggageItem
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 moreAuto Trait Implementations§
impl Freeze for BaggageItem
impl RefUnwindSafe for BaggageItem
impl Send for BaggageItem
impl Sync for BaggageItem
impl Unpin for BaggageItem
impl UnsafeUnpin for BaggageItem
impl UnwindSafe for BaggageItem
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