Trait aws_smithy_observability::meter::UpDownCounter

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

A counter that can increase or decrease.

Required Methods§

source

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

Increment or decrement a counter by a fixed amount.

Implementors§