[][src]Struct opentelemetry::global::BoxedSpan

pub struct BoxedSpan(_);

Boxed span wraps a generic trait object so that BoxedTracers can return whichever type of span they were configured to use.

Trait Implementations

impl Debug for BoxedSpan[src]

impl Span for BoxedSpan[src]

fn add_event_with_timestamp(&mut self, message: String, timestamp: SystemTime)[src]

Delegates to inner span.0

fn get_context(&self) -> SpanContext[src]

Delegates to inner span.

fn is_recording(&self) -> bool[src]

Delegates to inner span.

fn set_attribute(&mut self, attribute: KeyValue)[src]

Delegates to inner span.

fn set_status(&mut self, status: SpanStatus)[src]

Delegates to inner span.

fn update_name(&mut self, new_name: String)[src]

Delegates to inner span.

fn end(&mut self)[src]

Delegates to inner span.

fn as_any(&self) -> &dyn Any[src]

Returns self as any

fn mark_as_active(&self)[src]

Mark span as currently active

fn mark_as_inactive(&self)[src]

Mark span as no longer active

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<F> Instrument for F[src]

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,