Trait ProvideMeter

pub trait ProvideMeter:
    Send
    + Sync
    + Debug
    + 'static {
    // Required methods
    fn get_meter(
        &self,
        scope: &'static str,
        attributes: Option<&Attributes>,
    ) -> Meter;
    fn as_any(&self) -> &(dyn Any + 'static);
}
Expand description

Provides named instances of Meter.

Required Methods§

fn get_meter( &self, scope: &'static str, attributes: Option<&Attributes>, ) -> Meter

Get or create a named Meter.

fn as_any(&self) -> &(dyn Any + 'static)

Downcast to Any for type inspection.

Implementors§

Source§

impl ProvideMeter for OtelMeterProvider

§

impl ProvideMeter for NoopMeterProvider