[][src]Struct opentelemetry::api::trace::noop::NoopTracer

pub struct NoopTracer {}

A no-op instance of a Tracer.

Trait Implementations

impl Tracer for NoopTracer[src]

type Span = NoopSpan

The Span type used by this Tracer.

fn invalid(&self) -> Self::Span[src]

Returns a NoopSpan as they are always invalid.

fn start(&self, _name: &str, _context: Option<SpanContext>) -> Self::Span[src]

Starts a new NoopSpan.

fn get_active_span(&self) -> Self::Span[src]

Returns a new NoopSpan as this tracer does not maintain a registry.

fn mark_span_as_active(&self, _span: &Self::Span)[src]

Ignores active span state.

fn mark_span_as_inactive(&self, _span_id: u64)[src]

Ignores active span state.

impl Debug for NoopTracer[src]

Auto Trait Implementations

Blanket Implementations

impl<S> TracerGenerics for S where
    S: Tracer
[src]

fn with_span<T, F>(&Self, &'static str, F) -> T where
    F: FnOnce(&mut <S as Tracer>::Span) -> T, 
[src]

Wraps the execution of the function body with a span. It starts a new span and sets it as the active span for the given function. It then executes the body. It closes the span before returning the execution result.

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

impl<T> From<T> for 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<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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,