[][src]Trait tracing_actix::ActorInstrument

pub trait ActorInstrument: ActorFuture + Unpin + Sized {
    pub fn actor_instrument(self, span: Span) -> ActorInstrumented<Self> { ... }
}

Extension trait allowing actor futures to be instrumented with a tracing Span.

Provided methods

pub fn actor_instrument(self, span: Span) -> ActorInstrumented<Self>[src]

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

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

Loading content...

Implementors

impl<T: ActorFuture + Unpin + Sized> ActorInstrument for T[src]

Loading content...