[−][src]Trait opentelemetry::metrics::sdk_api::SyncInstrumentCore
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 + Send + Sync>
[src]
&self,
labels: &[KeyValue]
) -> Arc<dyn SyncBoundInstrumentCore + Send + Sync>
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