macro_rules! identify_callsite {
    ($callsite:expr) => { ... };
}
Expand description

Statically constructs an Identifier for the provided Callsite.

This may be used in contexts such as static initializers.

For example:

use tracing_core::{callsite, identify_callsite};
pub struct MyCallsite {
   // ...
}
impl callsite::Callsite for MyCallsite {
    // ...
}

static CALLSITE: MyCallsite = MyCallsite {
    // ...
};

static CALLSITE_ID: callsite::Identifier = identify_callsite!(&CALLSITE);