[][src]Trait tracing_futures::Instrument

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

Extension trait allowing futures, streams, and skins to be instrumented with a tracing Span.

Provided methods

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

Instruments this type with the provided Span, returning an Instrumented wrapper.

When the wrapped future, stream, or sink is polled, the attached Span will be entered for the duration of the poll.

Loading content...

Implementors

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

Loading content...