[][src]Trait opentelemetry::metrics::sdk_api::SyncInstrumentCore

pub trait SyncInstrumentCore: InstrumentCore {
    pub fn bind(&self, labels: &[KeyValue]) -> Arc<dyn SyncBoundInstrumentCore>;
pub fn record_one(&self, number: Number, labels: &[KeyValue]);
pub fn as_any(&self) -> &dyn Any; }
This is supported on crate feature metrics only.

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

Required methods

pub fn bind(&self, labels: &[KeyValue]) -> Arc<dyn SyncBoundInstrumentCore>[src]

Creates an implementation-level bound instrument, binding a label set with this instrument implementation.

pub fn record_one(&self, number: Number, labels: &[KeyValue])[src]

Capture a single synchronous metric event.

pub fn as_any(&self) -> &dyn Any[src]

Returns self as any

Loading content...

Implementors

impl SyncInstrumentCore for NoopSyncInstrument[src]

Loading content...