pub trait AsyncMeasurement {
    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§