Module subscriber

Source
Expand description

Collects and records trace data.

Structs§

Interest
Indicates a Subscriber’s interest in a particular callsite.
NoSubscriber
A no-op Subscriber.
SetGlobalDefaultError
Returned if setting the global dispatcher fails.

Traits§

Subscriber
Trait representing the functions required to collect trace data.

Functions§

set_global_default
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.)