Trait rama::telemetry::opentelemetry::metrics::AsyncInstrument

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.

Required Methods§

fn observe(&self, measurement: T, attributes: &[KeyValue])

Observes the state of the instrument.

It is only valid to call this within a callback.

Implementors§