[][src]Struct opentelemetry::api::trace::NoopSpan

pub struct NoopSpan { /* fields omitted */ }

A no-op instance of a Span.

Implementations

impl NoopSpan[src]

pub fn new() -> Self[src]

Creates a new NoopSpan instance.

Trait Implementations

impl Debug for NoopSpan[src]

impl Default for NoopSpan[src]

impl Span for NoopSpan[src]

fn add_event(&self, _name: String, _attributes: Vec<KeyValue>)[src]

Ignores all events

fn add_event_with_timestamp(
    &self,
    _name: String,
    _timestamp: SystemTime,
    _attributes: Vec<KeyValue>
)
[src]

Ignores all events with timestamps

fn span_reference(&self) -> SpanReference[src]

Returns an invalid SpanReference.

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

Returns false, signifying that this span is never recording.

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

Ignores all attributes

fn set_status(&self, _code: StatusCode, _message: String)[src]

Ignores status

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

Ignores name updates

fn end_with_timestamp(&self, _timestamp: SystemTime)[src]

Ignores Span endings

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<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>,