Trait opentelemetry::sdk::metrics::sdk_api::InstrumentCore
source · pub trait InstrumentCore: AsDynInstrumentCore {
// Required methods
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§
sourcefn descriptor(&self) -> &Descriptor
fn descriptor(&self) -> &Descriptor
Description of the instrument’s descriptor