pub trait SyncInstrumentCore: InstrumentCore {
    // Required method
    fn record_one(&self, cx: &Context, number: Number, attributes: &[KeyValue]);
}
Available on crate feature metrics only.
Expand description

The implementation-level interface to a generic synchronous instrument (e.g., Histogram and Counter instruments).

Required Methods§

source

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

Capture a single synchronous metric event.

Implementors§