Struct tracing_subscriber::CurrentSpan [−][src]
pub struct CurrentSpan { /* fields omitted */ }
👎 Deprecated since 0.2.18:
Will be removed in v0.3
Expand description
Tracks the currently executing span on a per-thread basis.
Implementations
Returns the Id
of the span in which the current thread is
executing, or None
if it is not inside of a span.
Records that the current thread has entered the span with the provided ID.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CurrentSpan
impl Send for CurrentSpan
impl Sync for CurrentSpan
impl Unpin for CurrentSpan
impl UnwindSafe for CurrentSpan
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more