[−][src]Struct rustracing::span::BaggageItem
Baggage item.
BaggageItem
s are key:value string pairs that apply to a Span
, its SpanContext
,
and all Span
s which directly or transitively reference the local Span
.
That is, BaggageItem
s propagate in-band along with the trace itself.
BaggageItem
s 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.
Methods
impl BaggageItem
[src]
pub fn new(name: &str, value: &str) -> Self
[src]
Makes a new BaggageItem
instance.
pub fn name(&self) -> &str
[src]
Returns the name of this item.
pub fn value(&self) -> &str
[src]
Returns the value of this item.
Trait Implementations
impl Clone for BaggageItem
[src]
fn clone(&self) -> BaggageItem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for BaggageItem
[src]
Auto Trait Implementations
impl Unpin for BaggageItem
impl Send for BaggageItem
impl Sync for BaggageItem
impl RefUnwindSafe for BaggageItem
impl UnwindSafe for BaggageItem
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,