aws_smithy_observability::instruments

Trait 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§