Trait opentelemetry::sdk::metrics::sdk_api::AsyncInstrumentCore
source · pub trait AsyncInstrumentCore: InstrumentCore {
// Required method
fn observe_one(&self, cx: &Context, number: Number, attributes: &[KeyValue]);
}
Available on crate feature
metrics
only.Expand description
An implementation-level interface to an asynchronous instrument (e.g., Observable instruments).
Required Methods§
sourcefn observe_one(&self, cx: &Context, number: Number, attributes: &[KeyValue])
fn observe_one(&self, cx: &Context, number: Number, attributes: &[KeyValue])
Captures a single asynchronous metric event.