logo
pub trait SyncUpDownCounter<T> {
    fn add(&self, cx: &Context, value: T, attributes: &[KeyValue]);
}
Available on crate feature metrics only.
Expand description

An SDK implemented instrument that records increasing or decreasing values.

Required Methods

Records an increment or decrement to the counter.

Implementors