diff --git a/crates/metrics/src/lib.rs b/crates/metrics/src/lib.rs index 7d6e3ef..2f48ec2 100644 --- a/crates/metrics/src/lib.rs +++ b/crates/metrics/src/lib.rs @@ -20,7 +20,7 @@ const DEFAULT_SERVICE_NAME: &str = "unknown_service"; static SERVICE_NAME: Mutex> = Mutex::new(None); -type MeterProviderBuilderIntercept = fn(MeterProviderBuilder) -> MeterProviderBuilder; +pub type MeterProviderBuilderIntercept = fn(MeterProviderBuilder) -> MeterProviderBuilder; static METER_PROVIDER_BUILDER: Mutex> = Mutex::new(None); static METRICS_CORE: Lazy> = Lazy::new(|| { @@ -75,7 +75,7 @@ impl ServiceMetrics { Lazy::force(&METRICS_CORE); } - /// Initializes service metrics with the specified name. + /// Initializes service metrics with the specified name and meter provider builder. /// /// # Panics ///