aws_smithy_observability::instruments

Trait Histogram

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

Collects a set of events with an event count and sum for all events.

Required Methods§

Source

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

Record a value.

Implementors§