Module tracing::collect [−][src]
Expand description
Collects and records trace data.
Structs
DefaultGuard | std A guard that resets the current default dispatcher to the prior default dispatcher when dropped. |
Interest | Indicates a |
SetGlobalDefaultError | Returned if setting the global dispatcher fails. |
Traits
Collect | Trait representing the functions required to collect trace data. |
Functions
set_default | std Sets the collector as the default for the duration of the lifetime of the
returned |
set_global_default | std 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 | std Sets this collector as the default for the duration of a closure. |