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§

source

fn observe_one(&self, cx: &Context, number: Number, attributes: &[KeyValue])

Captures a single asynchronous metric event.

Implementors§