Trait opentelemetry::sdk::metrics::sdk_api::SyncInstrumentCore
source · [−]pub trait SyncInstrumentCore: InstrumentCore {
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
sourcefn record_one(&self, cx: &Context, number: Number, attributes: &[KeyValue])
fn record_one(&self, cx: &Context, number: Number, attributes: &[KeyValue])
Capture a single synchronous metric event.