Trait tracing_actix::ActorInstrument
source · [−]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>
fn actor_instrument(self, span: Span) -> ActorInstrumented<Self>
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.