Trait opentelemetry_api::metrics::AsyncGauge
source · [−]pub trait AsyncGauge<T>: Send + Sync {
fn observe(&self, cx: &Context, value: T, attributes: &[KeyValue]);
}
Available on crate feature
metrics
only.Expand description
An SDK implemented instrument that records independent readings.