rama::telemetry::opentelemetry::metrics

Trait SyncInstrument

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§

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

Records a measurement synchronously.

Implementors§