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 CurrentSpanimpl Send for CurrentSpanimpl Sync for CurrentSpanimpl Unpin for CurrentSpanimpl UnwindSafe for CurrentSpan