// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. #![allow(non_upper_case_globals)] //! Storage snapshotting. use std::collections::HashMap; use serde_json::{json, Value as JsonValue}; use crate::coverage::record_coverage; use crate::database::Database; use crate::metrics::dual_labeled_counter::RECORD_SEPARATOR; use crate::metrics::Metric; use crate::Lifetime; // An internal ping name, not to be touched by anything else pub(crate) const INTERNAL_STORAGE: &str = "glean_internal_info"; /// Snapshot metrics from the underlying database. pub struct StorageManager; /// Labeled metrics are stored as `/