instrument_named

Macro instrument_named 

Source
macro_rules! instrument_named {
    ($future:expr, $name:expr) => { ... };
}
Expand description

Instruments a future with a named span. Usage: instrument_named!(future, "span_name")

ยงExamples

use micromegas_tracing::prelude::*;

let future = async { 42 };
let result = instrument_named!(future, "operation_name").await;