macro_rules! trace_span {
($span_name:literal, $($field:tt)*) => { ... };
($span_name:literal) => { ... };
}Expand description
Constructs a span at the trace level
This macro creates a Span for the purpose of instrumenting code to measure
the execution time of the span.
If the tracing feature (of the crate using this macro) is disabled, then
the Span implementation will be replaced with a dummy, that does not record
anything.
Attention: This macro requires the user crate to have a tracing feature,
which can be used to disable the effects of this macro.