Module tracing::subscriber

source ·
Expand description

Collects and records trace data.

Structs

Traits

  • Trait representing the functions required to collect trace data.

Functions

  • Sets the Subscriber as the default for the current thread for the duration of the lifetime of the returned DefaultGuard.
  • Sets this subscriber as the global default for the duration of the entire program. Will be used as a fallback if no thread-local subscriber has been set in a thread (using with_default.)
  • Sets this Subscriber as the default for the current thread for the duration of a closure.