Trait InstrumentCore

Source
pub trait InstrumentCore:
    Debug
    + Send
    + Sync {
    // Required method
    fn descriptor(&self) -> &Descriptor;
}
Available on crate feature metrics only.
Expand description

A common interface for synchronous and asynchronous instruments.

Required Methods§

Source

fn descriptor(&self) -> &Descriptor

Description of the instrument’s descriptor

Implementors§