pub trait ActorInstrument: Sized {
// Provided methods
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§
Sourcefn 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.
fn in_current_actor_span(self) -> ActorInstrumented<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.