diff --git a/common/lighthouse_metrics/src/lib.rs b/common/lighthouse_metrics/src/lib.rs index 98973de..1e52b9d 100644 --- a/common/lighthouse_metrics/src/lib.rs +++ b/common/lighthouse_metrics/src/lib.rs @@ -5,7 +5,7 @@ //! //! - `Histogram`: used with `start_timer(..)` and `stop_timer(..)` to record durations (e.g., //! block processing time). -//! - `IncCounter`: used to represent an ideally ever-growing, never-shrinking integer (e.g., +//! - `IntCounter`: used to represent an ideally ever-growing, never-shrinking integer (e.g., //! number of block processing requests). //! - `IntGauge`: used to represent an varying integer (e.g., number of attestations per block). //! @@ -78,7 +78,7 @@ pub fn try_create_int_counter(name: &str, help: &str) -> Result { Ok(counter) } -/// Attempts to create an `IntGauge`, returning `Err` if the registry does not accept the counter +/// Attempts to create an `IntGauge`, returning `Err` if the registry does not accept the gauge /// (potentially due to naming conflict). pub fn try_create_int_gauge(name: &str, help: &str) -> Result { let opts = Opts::new(name, help); @@ -87,7 +87,7 @@ pub fn try_create_int_gauge(name: &str, help: &str) -> Result { Ok(gauge) } -/// Attempts to create a `Gauge`, returning `Err` if the registry does not accept the counter +/// Attempts to create a `Gauge`, returning `Err` if the registry does not accept the gauge /// (potentially due to naming conflict). pub fn try_create_float_gauge(name: &str, help: &str) -> Result { let opts = Opts::new(name, help); @@ -96,7 +96,7 @@ pub fn try_create_float_gauge(name: &str, help: &str) -> Result { Ok(gauge) } -/// Attempts to create a `Histogram`, returning `Err` if the registry does not accept the counter +/// Attempts to create a `Histogram`, returning `Err` if the registry does not accept the histogram /// (potentially due to naming conflict). pub fn try_create_histogram(name: &str, help: &str) -> Result { let opts = HistogramOpts::new(name, help); @@ -105,7 +105,7 @@ pub fn try_create_histogram(name: &str, help: &str) -> Result { Ok(histogram) } -/// Attempts to create a `HistogramVec`, returning `Err` if the registry does not accept the counter +/// Attempts to create a `HistogramVec`, returning `Err` if the registry does not accept the histogram /// (potentially due to naming conflict). pub fn try_create_histogram_vec( name: &str, @@ -144,7 +144,7 @@ pub fn try_create_float_gauge_vec( Ok(counter_vec) } -/// Attempts to create a `IntCounterVec`, returning `Err` if the registry does not accept the gauge +/// Attempts to create a `IntCounterVec`, returning `Err` if the registry does not accept the counter /// (potentially due to naming conflict). pub fn try_create_int_counter_vec( name: &str,