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

pub struct NoopTracer { /* fields omitted */ }

A no-op instance of a Tracer.

Implementations

impl NoopTracer[src]

pub fn new() -> Self[src]

Create a new no-op tracer

Trait Implementations

impl Debug for NoopTracer[src]

impl Default for NoopTracer[src]

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_from_context(&self, name: &str, cx: &Context) -> Self::Span[src]

Starts a new NoopSpan in a given context.

If the context contains a valid span context, it is progagated.

fn span_builder(&self, name: &str) -> SpanBuilder[src]

Starts a SpanBuilder.

fn build_with_context(&self, builder: SpanBuilder, cx: &Context) -> Self::Span[src]

Builds a NoopSpan from a SpanBuilder.

If the span builder or context contains a valid span context, it is progagated.

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