Trait opentelemetry::metrics::AsyncInstrument
source · pub trait AsyncInstrument<T>: Send + Sync {
// Required method
fn observe(&self, measurement: T, attributes: &[KeyValue]);
}
Expand description
An SDK implemented instrument that records measurements via callback.