[][src]Trait opentelemetry::api::trace::futures::Instrument

pub trait Instrument: Sized {
    fn instrument<S: Span>(self, span: S) -> Instrumented<Self, S> { ... }
fn in_active_span<T: Tracer>(self, tracer: T) -> Instrumented<Self, T::Span> { ... } }

Extension trait allowing futures, streams, sinks, and executors to be traced with a span.

Provided methods

fn instrument<S: Span>(self, span: S) -> Instrumented<Self, S>

Traces this type with the provided Span, returning a Instrumented wrapper.

fn in_active_span<T: Tracer>(self, tracer: T) -> Instrumented<Self, T::Span>

Traces this type with the provided Tracer's active span, returning a Instrumented wrapper.

Loading content...

Implementors

impl<F: Sized> Instrument for F[src]

Loading content...