Macro span

Source
macro_rules! span {
    ($($fmt_arg:tt)*) => { ... };
}
Expand description

Creates a new span with formatted name.

instrument_await accepts any type that implements AsRef<str> as the span name. This macro provides similar functionality to format!, but with improved performance by creating the span name on the stack when possible, avoiding unnecessary allocations.