pub trait AsyncInstrument<T>: Send + Sync {
// Required methods
fn observe(&self, measurement: T, attributes: &[KeyValue]);
fn as_any(&self) -> Arc<dyn Any>;
}
Expand description
An SDK implemented instrument that records measurements via callback.