Debian Codegraph @

third_party/rust/glean-core/src/glean_metrics.rs

raw
1 // This Source Code Form is subject to the terms of the Mozilla Public
2 // License, v. 2.0. If a copy of the MPL was not distributed with this
3 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
5 // ** IMPORTANT **
6 //
7 // This file is required in order to include the ones generated by
8 // 'glean-parser' from the SDK registry files.
9
10 pub mod error {
11 use crate::metrics::CounterMetric;
12 use crate::{CommonMetricData, Lifetime};
13 use once_cell::sync::Lazy;
14
15 #[allow(non_upper_case_globals)]
16 pub static preinit_tasks_overflow: Lazy<CounterMetric> = Lazy::new(|| {
17 CounterMetric::new(CommonMetricData {
18 category: "glean.error".into(),
19 name: "preinit_tasks_overflow".into(),
20 send_in_pings: vec!["metrics".into()],
21 lifetime: Lifetime::Ping,
22 disabled: false,
23 ..Default::default()
24 })
25 });
26 }