logo
pub trait InstrumentCore: AsDynInstrumentCore {
    fn descriptor(&self) -> &Descriptor;
    fn as_any(&self) -> &(dyn Any + 'static);
}
Available on crate feature metrics only.
Expand description

A common interface for synchronous and asynchronous instruments.

Required Methods

Description of the instrument’s descriptor

Returns self as any

Implementors