diff --git a/crates/metrics/src/lib.rs b/crates/metrics/src/lib.rs index 5e4a0e6..c09f23b 100644 --- a/crates/metrics/src/lib.rs +++ b/crates/metrics/src/lib.rs @@ -25,7 +25,7 @@ //! LabeledGauge3, //! LabeledHistogram, //! Lazy, -//! OptionalLabel, +//! Optional, //! StringLabel, //! }; //! @@ -64,7 +64,7 @@ //! .with_description("My labeled counter") //! .build(); //! -//! static GAUGE_B: Lazy>> = +//! static GAUGE_B: Lazy>> = //! metrics::new("gauge_b"); //! //! COUNTER_A.increment(1); @@ -79,16 +79,7 @@ pub use { backend, enum_ordinalize, - label::{ - label_name, - BoolLabel, - Enum, - EnumLabel, - LabelName, - Optional as OptionalLabel, - StringLabel, - WithLabel, - }, + label::{label_name, BoolLabel, Enum, EnumLabel, LabelName, Optional, StringLabel, WithLabel}, lazy::Lazy, }; use { @@ -317,6 +308,6 @@ pub type LabeledFutureMetrics3 = Labeled3; #[cfg(feature = "future")] pub type LabeledFutureMetrics4 = Labeled4; -pub type OptionalEnumLabel = OptionalLabel>; -pub type OptionalBoolLabel = OptionalLabel>; -pub type OptionalStringLabel = OptionalLabel>; +pub type OptionalEnumLabel = Optional>; +pub type OptionalBoolLabel = Optional>; +pub type OptionalStringLabel = Optional>;