🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing

Module collect

Source
Expand description

Collects and records trace data.

Structs§

DefaultGuardstd
A guard that resets the current default dispatcher to the prior default dispatcher when dropped.
Interest
Indicates a Collect’s interest in a particular callsite.
NoCollector
A no-op collector.
SetGlobalDefaultError
Returned if setting the global dispatcher fails.

Traits§

Collect
Trait representing the functions required to collect trace data.

Functions§

set_defaultstd
Sets the collector as the default for the current thread for the duration of the lifetime of the returned DefaultGuard.
set_global_defaultstd or alloc
Sets this collector as the global default for the duration of the entire program. Will be used as a fallback if no thread-local collector has been set in a thread (using with_default.)
with_defaultstd
Sets this collector as the default for the current thread for the duration of a closure.