Trait opentelemetry::metrics::sdk_api::SyncInstrumentCore
source · [−]pub trait SyncInstrumentCore: InstrumentCore {
fn bind(&self, attributes: &[KeyValue]) -> Arc<dyn SyncBoundInstrumentCore>;
fn record_one(&self, number: Number, attributes: &[KeyValue]);
fn as_any(&self) -> &dyn Any;
}
This is supported on crate feature
metrics
only.Expand description
The implementation-level interface to a generic synchronous instrument (e.g., ValueRecorder and Counter instruments).
Required methods
Creates an implementation-level bound instrument, binding an attribute set with this instrument implementation.
Capture a single synchronous metric event.