opentelemetry::metrics

Trait SyncUpDownCounter

Source
pub trait SyncUpDownCounter<T> {
    // Required method
    fn add(&self, value: T, attributes: &[KeyValue]);
}
Expand description

An SDK implemented instrument that records increasing or decreasing values.

Required Methods§

Source

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

Records an increment or decrement to the counter.

Implementors§