Trait tracing_actix::ActorInstrument [−][src]
pub trait ActorInstrument: Sized { fn actor_instrument(self, span: Span) -> ActorInstrumented<Self> { ... } fn in_current_actor_span(self) -> ActorInstrumented<Self> { ... } }
Expand description
Extension trait allowing actor futures to be instrumented with
a tracing
Span
.
Provided methods
fn actor_instrument(self, span: Span) -> ActorInstrumented<Self>
[src]
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.
fn in_current_actor_span(self) -> ActorInstrumented<Self>
[src]