diff --git a/common/logging/src/lib.rs b/common/logging/src/lib.rs index 6722381dba..8ef3436b06 100644 --- a/common/logging/src/lib.rs +++ b/common/logging/src/lib.rs @@ -1,5 +1,3 @@ -use metrics::{IntCounter, Result as MetricsResult, try_create_int_counter}; -use std::sync::LazyLock; use std::time::{Duration, Instant}; use tracing_subscriber::EnvFilter; @@ -23,15 +21,6 @@ pub use utils::build_workspace_filter; /// The minimum interval between log messages indicating that a queue is full. const LOG_DEBOUNCE_INTERVAL: Duration = Duration::from_secs(30); -pub static INFOS_TOTAL: LazyLock> = - LazyLock::new(|| try_create_int_counter("info_total", "Count of infos logged")); -pub static WARNS_TOTAL: LazyLock> = - LazyLock::new(|| try_create_int_counter("warn_total", "Count of warns logged")); -pub static ERRORS_TOTAL: LazyLock> = - LazyLock::new(|| try_create_int_counter("error_total", "Count of errors logged")); -pub static CRITS_TOTAL: LazyLock> = - LazyLock::new(|| try_create_int_counter("crit_total", "Count of crits logged")); - /// Provides de-bounce functionality for logging. #[derive(Default)] pub struct TimeLatch(Option);