Expand description
§tracing-unlikely
A wrapper around tracing that minimizes overhead when tracing
is disabled.
This crate exports API-compatible tracing macros that avoid inlining debug machinery into the hot path when any relevant tracing levels are disabled. This is useful for crates where tracing is used heavily for debugging but rarely enabled in practice.
Note that the rest of the tracing public API is also re-exported, and all crate-level features are mirrored,
so this crate serves as a drop-in replacement for the entire tracing crate.
Macros§
- debug
- Constructs an event at the debug level.
- debug_
span - Constructs a span at the debug level.
- error
- Constructs an event at the error level.
- error_
span - Constructs a span at the error level.
- event
- Constructs a new
Event. - info
- Constructs an event at the info level.
- info_
span - Constructs a span at the info level.
- span
- Constructs a new span.
- trace
- Constructs an event at the trace level.
- trace_
span - Constructs a span at the trace level.
- warn
- Constructs an event at the warn level.
- warn_
span - Constructs a span at the warn level.