Trait opentelemetry::metrics::MeterProvider[][src]

pub trait MeterProvider: Debug {
    fn meter(
        &self,
        instrumentation_name: &'static str,
        instrumentation_version: Option<&'static str>
    ) -> Meter; }
This is supported on crate feature metrics only.

Returns named meter instances

Required methods

fn meter(
    &self,
    instrumentation_name: &'static str,
    instrumentation_version: Option<&'static str>
) -> Meter
[src]

Creates an implementation of the Meter interface. The instrumentation name must be the name of the library providing instrumentation. This name may be the same as the instrumented code only if that code provides built-in instrumentation. If the instrumentation name is empty, then a implementation defined default name will be used instead.

Loading content...

Implementors

impl MeterProvider for GlobalMeterProvider[src]

fn meter(&self, name: &'static str, version: Option<&'static str>) -> Meter[src]

This is supported on crate feature metrics only.

impl MeterProvider for NoopMeterProvider[src]

fn meter(&self, name: &'static str, version: Option<&'static str>) -> Meter[src]

impl MeterProvider for RegistryMeterProvider[src]

fn meter(&self, name: &'static str, version: Option<&'static str>) -> Meter[src]

Loading content...