Trait opentelemetry::metrics::sdk_api::InstrumentCore
source · [−]pub trait InstrumentCore: Debug + Send + Sync {
fn descriptor(&self) -> &Descriptor;
}
This is supported on crate feature
metrics
only.Expand description
A common interface for synchronous and asynchronous instruments.
Required methods
fn descriptor(&self) -> &Descriptor
fn descriptor(&self) -> &Descriptor
Description of the instrument’s descriptor