pub trait MonotonicCounter: Send + Sync + Debug {
    // Required method
    fn add(
        &self,
        value: u64,
        attributes: Option<&Attributes>,
        context: Option<&dyn Context>,
    );
}
Expand description

A counter that monotonically increases.

Required Methods§

source

fn add( &self, value: u64, attributes: Option<&Attributes>, context: Option<&dyn Context>, )

Increment a counter by a fixed amount.

Implementors§