File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 1
- use metrics:: { IntCounter , Result as MetricsResult , try_create_int_counter} ;
2
- use std:: sync:: LazyLock ;
3
1
use std:: time:: { Duration , Instant } ;
4
2
use tracing_subscriber:: EnvFilter ;
5
3
@@ -23,15 +21,6 @@ pub use utils::build_workspace_filter;
23
21
/// The minimum interval between log messages indicating that a queue is full.
24
22
const LOG_DEBOUNCE_INTERVAL : Duration = Duration :: from_secs ( 30 ) ;
25
23
26
- pub static INFOS_TOTAL : LazyLock < MetricsResult < IntCounter > > =
27
- LazyLock :: new ( || try_create_int_counter ( "info_total" , "Count of infos logged" ) ) ;
28
- pub static WARNS_TOTAL : LazyLock < MetricsResult < IntCounter > > =
29
- LazyLock :: new ( || try_create_int_counter ( "warn_total" , "Count of warns logged" ) ) ;
30
- pub static ERRORS_TOTAL : LazyLock < MetricsResult < IntCounter > > =
31
- LazyLock :: new ( || try_create_int_counter ( "error_total" , "Count of errors logged" ) ) ;
32
- pub static CRITS_TOTAL : LazyLock < MetricsResult < IntCounter > > =
33
- LazyLock :: new ( || try_create_int_counter ( "crit_total" , "Count of crits logged" ) ) ;
34
-
35
24
/// Provides de-bounce functionality for logging.
36
25
#[ derive( Default ) ]
37
26
pub struct TimeLatch ( Option < Instant > ) ;
You can’t perform that action at this time.
0 commit comments