Skip to content

Commit

Permalink
fix: types and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Apr 17, 2024
1 parent 90bf2d3 commit 1b8052d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const DEFAULT_SERVICE_NAME: &str = "unknown_service";

static SERVICE_NAME: Mutex<Option<&str>> = Mutex::new(None);

type MeterProviderBuilderIntercept = fn(MeterProviderBuilder) -> MeterProviderBuilder;
pub type MeterProviderBuilderIntercept = fn(MeterProviderBuilder) -> MeterProviderBuilder;
static METER_PROVIDER_BUILDER: Mutex<Option<MeterProviderBuilderIntercept>> = Mutex::new(None);

static METRICS_CORE: Lazy<Arc<ServiceMetrics>> = Lazy::new(|| {
Expand Down Expand Up @@ -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
///
Expand Down

0 comments on commit 1b8052d

Please sign in to comment.