opentelemetry::metrics

Trait SyncInstrument

source
pub trait SyncInstrument<T>: Send + Sync {
    // Required method
    fn measure(&self, measurement: T, attributes: &[KeyValue]);
}
Expand description

An SDK implemented instrument that records measurements synchronously.

Required Methods§

source

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

Records a measurement synchronously.

Implementors§