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

pub trait MeterCore: Debug {
    pub fn record_batch_with_context(
        &self,
        cx: &Context,
        labels: &[KeyValue],
        measurements: Vec<Measurement>
    );
pub fn new_sync_instrument(
        &self,
        descriptor: Descriptor
    ) -> Result<Arc<dyn SyncInstrumentCore + Send + Sync>>;
pub fn new_async_instrument(
        &self,
        descriptor: Descriptor,
        runner: AsyncRunner
    ) -> Result<Arc<dyn AsyncInstrumentCore + Send + Sync>>; }
This is supported on crate feature metrics only.

The interface an SDK must implement to supply a Meter implementation.

Required methods

pub fn record_batch_with_context(
    &self,
    cx: &Context,
    labels: &[KeyValue],
    measurements: Vec<Measurement>
)
[src]

Atomically record a batch of measurements.

pub fn new_sync_instrument(
    &self,
    descriptor: Descriptor
) -> Result<Arc<dyn SyncInstrumentCore + Send + Sync>>
[src]

Create a new synchronous instrument implementation.

pub fn new_async_instrument(
    &self,
    descriptor: Descriptor,
    runner: AsyncRunner
) -> Result<Arc<dyn AsyncInstrumentCore + Send + Sync>>
[src]

Create a new asynchronous instrument implementation.

Loading content...

Implementors

impl MeterCore for NoopMeterCore[src]

impl MeterCore for Accumulator[src]

Loading content...