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
where Self: Sized { ... }
fn provider_name(&self) -> &'static str { ... }
}Expand description
Provides named instances of Meter.
Required Methods§
Provided Methods§
Sourcefn as_any(&self) -> &dyn Anywhere
Self: Sized,
fn as_any(&self) -> &dyn Anywhere
Self: Sized,
Returns a reference to self as &dyn Any for downcasting.
This allows type-based identification of meter providers.
Sourcefn 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.