Trait ProvideMeter

pub trait ProvideMeter:
    Send
    + Sync
    + Debug {
    // Required method
    fn get_meter(
        &self,
        scope: &'static str,
        attributes: Option<&Attributes>,
    ) -> Meter;

    // Provided method
    fn provider_name(&self) -> &'static str { ... }
}
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.

Provided Methods§

fn provider_name(&self) -> &'static str

Returns the name of this provider implementation. This is used for feature tracking without requiring type imports.

Implementors§