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.