Trait ProvideMeter
pub trait ProvideMeter:
Send
+ Sync
+ Debug
+ 'static {
// Required method
fn get_meter(
&self,
scope: &'static str,
attributes: Option<&Attributes>,
) -> Meter;
// Provided methods
fn as_any(&self) -> &(dyn Any + 'static)
where Self: Sized { ... }
fn provider_name(&self) -> &'static str { ... }
}Expand description
Provides named instances of Meter.
Required Methods§
Provided Methods§
fn as_any(&self) -> &(dyn Any + 'static)where
Self: Sized,
fn as_any(&self) -> &(dyn Any + 'static)where
Self: Sized,
Returns a reference to self as &dyn Any for downcasting.
This allows type-based identification of meter providers.
fn provider_name(&self) -> &'static str
fn provider_name(&self) -> &'static str
Returns the name of this provider implementation. This is used for feature tracking without requiring type imports.