pub trait AsyncMeasurement: 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.