Trait opentelemetry::metrics::SyncHistogram

source ·
pub trait SyncHistogram<T> {
    // Required method
    fn record(&self, value: T, attributes: &[KeyValue]);
}
Available on crate feature metrics only.
Expand description

An SDK implemented instrument that records a distribution of values.

Required Methods§

source

fn record(&self, value: T, attributes: &[KeyValue])

Adds an additional value to the distribution.

Implementors§