static_span_location

Macro static_span_location 

Source
macro_rules! static_span_location {
    ($var_name:ident) => { ... };
}
Expand description

Creates a static SpanLocation for use with named async spans. This is an internal implementation detail - users should use instrument_named! instead.

ยงExamples

use micromegas_tracing::prelude::*;

// Don't use this directly - use instrument_named! instead
static_span_location!(LOCATION);
// Users should prefer: instrument_named!(future, "name")