Module subscriber
Collects and records trace data.
Modules
- callsite Callsites represent the source locations from which spans or events originate.
-
dispatcher
Dispatches trace events to
Subscribers. - event Events represent single points in time during the execution of a program.
-
field
SpanandEventkey-value data. - metadata Metadata describing trace data.
- span Spans represent periods of time in the execution of a program.
- subscriber Collectors collect and record trace data.
Structs
Functions
-
set_default
Sets the
Subscriberas the default for the current thread for the duration of the lifetime of the returnedDefaultGuard. -
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.) -
with_default
Sets this
Subscriberas the default for the current thread for the duration of a closure.
Macros
-
identify_callsite
Statically constructs an
Identifierfor the providedCallsite. - metadata Statically constructs new span [metadata].