aws_smithy_observability::instruments

Trait AsyncMeasure

Source
pub trait AsyncMeasure:
    Send
    + Sync
    + Debug {
    type Value;

    // Required methods
    fn record(
        &self,
        value: Self::Value,
        attributes: Option<&Attributes>,
        context: Option<&dyn Context>,
    );
    fn stop(&self);
}
Expand description

A measurement that can be taken asynchronously.

Required Associated Types§

Source

type Value

The type recorded by the measurement.

Required Methods§

Source

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

Record a value

Source

fn stop(&self)

Stop recording, unregister callback.

Implementors§