instrument

Macro instrument 

Source
macro_rules! instrument {
    ($span_name:expr, $expr:expr) => { ... };
    ($span_name:expr, [ $($key:ident = $value:expr),* $(,)? ], $expr:expr) => { ... };
}
Expand description

A macro for optionally instrumenting a future, if tracing feature is enabled.