[][src]Struct rustracing::span::BaggageItem

pub struct BaggageItem { /* fields omitted */ }

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.

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]

impl Debug for BaggageItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]