diff --git a/CHANGELOG.md b/CHANGELOG.md index 50c8ff56203..7f7c7891058 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ [Full Changelog](In progress) +## ⚠️ Breaking Changes ⚠️ + +### Logins +- Kotlin: KeyRegenerationEventReason value names now use UPPER_SNAKE_CASE naming. + e.g. KeyRegenerationEventReason.Lost is now KeyRegenerationEventReason.LOST. + # v162.0 (_2026-11-19_) [Full Changelog](https://github.com/mozilla/application-services/compare/v161.0...v162.0) diff --git a/Cargo.lock b/Cargo.lock index e7b6749378f..47612bf3d9e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1284,11 +1284,9 @@ dependencies = [ "backtrace", "env_logger", "error-support-macros", - "glean", - "glean-build", - "glean-sym", "lazy_static", "log", + "metrics-support", "parking_lot", "tracing-subscriber", "tracing-support", @@ -2769,6 +2767,7 @@ dependencies = [ "interrupt-support", "jwcrypto", "lazy_static", + "metrics-support", "nss-as", "parking_lot", "rusqlite", @@ -2971,6 +2970,16 @@ dependencies = [ "viaduct-backend-rust", ] +[[package]] +name = "metrics-support" +version = "0.1.0" +dependencies = [ + "anyhow", + "glean", + "glean-build", + "glean-sym", +] + [[package]] name = "mime" version = "0.3.17" @@ -3538,13 +3547,12 @@ dependencies = [ "dogear", "error-support", "glean", - "glean-build", - "glean-sym", "icu_casemap", "idna", "interrupt-support", "lazy_static", "memchr", + "metrics-support", "parking_lot", "percent-encoding", "rusqlite", @@ -3957,9 +3965,8 @@ dependencies = [ "error-support", "expect-test", "firefox-versioning", - "glean-build", - "glean-sym", "jexl-eval", + "metrics-support", "mockall", "mockito", "nss-as", diff --git a/Cargo.toml b/Cargo.toml index 2176af4e3ee..e1252b7fa04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,7 @@ members = [ "components/support/guid", "components/support/interrupt", "components/support/jwcrypto", + "components/support/metrics", "components/support/nimbus-cli", "components/support/nimbus-fml", "components/support/payload", diff --git a/components/logins/Cargo.toml b/components/logins/Cargo.toml index 247d3e5dc13..feed4e0d658 100644 --- a/components/logins/Cargo.toml +++ b/components/logins/Cargo.toml @@ -47,6 +47,7 @@ jwcrypto = { path = "../support/jwcrypto" } nss-as = { path = "../support/rc_crypto/nss", default-features = false } interrupt-support = { path = "../support/interrupt" } error-support = { path = "../support/error" } +metrics-support = { path = "../support/metrics" } rusqlite = { version = "0.37.0", features = ["limits", "unlock_notify"] } sync-guid = { path = "../support/guid", features = ["rusqlite_support", "random"] } thiserror = "2" diff --git a/components/logins/android/build.gradle b/components/logins/android/build.gradle index dcffcbd211a..6c5d9374677 100644 --- a/components/logins/android/build.gradle +++ b/components/logins/android/build.gradle @@ -1,5 +1,5 @@ buildscript { - // in mozilla-central there's no build.gradle suitable for the maven/glean config, so each component gets it. + // in mozilla-central there's no build.gradle suitable for the maven config, so each component gets it. if (gradle.hasProperty("mozconfig")) { repositories { gradle.mozconfig.substs.GRADLE_MAVEN_REPOSITORIES.each { repository -> @@ -11,27 +11,12 @@ buildscript { } } } - - dependencies { - classpath libs.mozilla.glean.gradle.plugin - } } } apply from: "$appServicesRootDir/build-scripts/component-common.gradle" apply from: "$publishDir/publish.gradle" -// Needs to happen before `dependencies` in order for the variables -// exposed by the plugin to be available for this project. -ext { - gleanNamespace = "mozilla.telemetry.glean" - gleanYamlFiles = ["${project.projectDir}/../metrics.yaml"] - if (gradle.hasProperty("mozconfig")) { - gleanPythonEnvDir = gradle.mozconfig.substs.GRADLE_GLEAN_PARSER_VENV - } -} -apply plugin: "org.mozilla.telemetry.glean-gradle-plugin" - android { namespace = 'org.mozilla.appservices.logins' } @@ -44,13 +29,10 @@ dependencies { implementation project(':init_rust_components') - implementation libs.mozilla.glean - testImplementation project(":syncmanager") testImplementation libs.androidx.test.core testImplementation libs.androidx.work.testing - testImplementation libs.mozilla.glean.forUnitTests } ext.configureUniFFIBindgen("logins") diff --git a/components/logins/android/src/main/java/mozilla/appservices/logins/DatabaseLoginsStorage.kt b/components/logins/android/src/main/java/mozilla/appservices/logins/DatabaseLoginsStorage.kt index 8d764316fb1..932bc35fb79 100644 --- a/components/logins/android/src/main/java/mozilla/appservices/logins/DatabaseLoginsStorage.kt +++ b/components/logins/android/src/main/java/mozilla/appservices/logins/DatabaseLoginsStorage.kt @@ -4,20 +4,8 @@ package mozilla.appservices.logins -/* - * Import some private Glean types, so that we can use them in type declarations. - * - * I do not like importing these private classes, but I do like the nice generic - * code they allow me to write! By agreement with the Glean team, we must not - * instantiate anything from these classes, and it's on us to fix any bustage - * on version updates. - */ - import mozilla.appservices.db_crypto.KeyManager import mozilla.appservices.db_crypto.createManagedEncdec -import mozilla.telemetry.glean.private.CounterMetricType -import mozilla.telemetry.glean.private.LabeledMetricType -import org.mozilla.appservices.logins.GleanMetrics.LoginsStore as LoginsStoreMetrics /** * An artifact of the uniffi conversion - a thin-ish wrapper around a @@ -136,77 +124,6 @@ class DatabaseLoginsStorage(dbPath: String, keyManager: KeyManager) : AutoClosea @Throws(LoginsApiException::class) fun deleteUndecryptableLoginsAndRecordMetrics() { - val result = store.deleteUndecryptableRecordsForRemoteReplacement() - if (result.localDeleted > 0u) { - LoginsStoreMetrics.localUndecryptableDeleted.add(result.localDeleted.toInt()) - } - if (result.mirrorDeleted > 0u) { - LoginsStoreMetrics.mirrorUndecryptableDeleted.add(result.mirrorDeleted.toInt()) - } - } -} - -enum class KeyRegenerationEventReason { - Lost, Corrupt, Other, -} - -fun recordKeyRegenerationEvent(reason: KeyRegenerationEventReason) { - // Avoid the deprecation warning when calling `record()` without the optional EventExtras param - @Suppress("DEPRECATION") - when (reason) { - KeyRegenerationEventReason.Lost -> LoginsStoreMetrics.keyRegeneratedLost.record() - KeyRegenerationEventReason.Corrupt -> LoginsStoreMetrics.keyRegeneratedCorrupt.record() - KeyRegenerationEventReason.Other -> LoginsStoreMetrics.keyRegeneratedOther.record() - } -} - -/** - * A helper class for gathering basic count metrics on different kinds of LoginsStore operation. - * - * For each type of operation, we want to measure: - * - total count of operations performed - * - count of operations that produced an error, labeled by type - * - * This is a convenience wrapper to measure the two in one shot. - */ -class LoginsStoreCounterMetrics( - val count: CounterMetricType, - val errCount: LabeledMetricType, -) { - inline fun measure(callback: () -> U): U { - return measureIgnoring({ false }, callback) - } - - @Suppress("ComplexMethod", "TooGenericExceptionCaught") - inline fun measureIgnoring( - shouldIgnore: (Exception) -> Boolean, - callback: () -> U, - ): U { - count.add() - try { - return callback() - } catch (e: Exception) { - if (shouldIgnore(e)) { - throw e - } - when (e) { - is LoginsApiException.NoSuchRecord -> { - errCount["no_such_record"].add() - } - is LoginsApiException.Interrupted -> { - errCount["interrupted"].add() - } - is LoginsApiException.InvalidRecord -> { - errCount["invalid_record"].add() - } - is LoginsApiException -> { - errCount["storage_error"].add() - } - else -> { - errCount["__other__"].add() - } - } - throw e - } + store.deleteUndecryptableRecordsForRemoteReplacement() } } diff --git a/components/logins/android/src/test/java/mozilla/appservices/logins/DatabaseLoginsStorageTest.kt b/components/logins/android/src/test/java/mozilla/appservices/logins/DatabaseLoginsStorageTest.kt index 9dae03abcfb..eef86e441cc 100644 --- a/components/logins/android/src/test/java/mozilla/appservices/logins/DatabaseLoginsStorageTest.kt +++ b/components/logins/android/src/test/java/mozilla/appservices/logins/DatabaseLoginsStorageTest.kt @@ -4,13 +4,11 @@ package mozilla.appservices.logins -import androidx.test.core.app.ApplicationProvider import mozilla.appservices.RustComponentsInitializer import mozilla.appservices.db_crypto.KeyManager import mozilla.appservices.db_crypto.createKey import mozilla.appservices.db_crypto.createStaticKeyManager import mozilla.appservices.syncmanager.SyncManager -import mozilla.telemetry.glean.testing.GleanTestRule import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertNotNull @@ -32,9 +30,6 @@ class DatabaseLoginsStorageTest { @JvmField val dbFolder = TemporaryFolder() - @get:Rule - val gleanRule = GleanTestRule(ApplicationProvider.getApplicationContext()) - fun createTestStore(): DatabaseLoginsStorage { RustComponentsInitializer.init() diff --git a/components/logins/metrics.yaml b/components/logins/metrics.yaml index 088e88deb95..3148f34e97c 100644 --- a/components/logins/metrics.yaml +++ b/components/logins/metrics.yaml @@ -8,11 +8,7 @@ # specific to the *syncing* of logins are defined in a separate "sync_ping" # package. # -# Changes to these metrics require data review, which should take into -# consideration the following known consumers of the logins component -# Android bindings: -# -# * Fenix for Android +# Changes to these metrics require data review. --- $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0 diff --git a/components/logins/src/db.rs b/components/logins/src/db.rs index 0d951d47f82..d736234ffaf 100644 --- a/components/logins/src/db.rs +++ b/components/logins/src/db.rs @@ -23,6 +23,7 @@ /// - After we sync, we move all records from loginsL to loginsM, overwriting any previous data. /// loginsL will be an empty table after this. See mark_as_synchronized() for the details. use crate::error::*; +use crate::glean_metrics; use crate::login::*; use crate::schema; use crate::sync::SyncStatus; @@ -49,11 +50,6 @@ pub struct LoginDb { interrupt_handle: Arc, } -pub struct LoginsDeletionMetrics { - pub local_deleted: u64, - pub mirror_deleted: u64, -} - impl LoginDb { pub fn with_connection(db: Connection, encdec: Arc) -> Result { #[cfg(test)] @@ -1088,9 +1084,7 @@ impl LoginDb { Ok(result) } - pub fn delete_undecryptable_records_for_remote_replacement( - &self, - ) -> Result { + pub fn delete_undecryptable_records_for_remote_replacement(&self) -> Result<()> { // Retrieve a list of guids for logins that cannot be decrypted let corrupted_logins = self .get_all()? @@ -1105,10 +1099,7 @@ impl LoginDb { self.delete_local_records_for_remote_replacement(ids) } - pub fn delete_local_records_for_remote_replacement( - &self, - ids: Vec<&str>, - ) -> Result { + pub fn delete_local_records_for_remote_replacement(&self, ids: Vec<&str>) -> Result<()> { let tx = self.unchecked_transaction_imm()?; let mut local_deleted = 0; let mut mirror_deleted = 0; @@ -1138,10 +1129,9 @@ impl LoginDb { })?; tx.commit()?; - Ok(LoginsDeletionMetrics { - local_deleted: local_deleted as u64, - mirror_deleted: mirror_deleted as u64, - }) + glean_metrics::logins_store::local_undecryptable_deleted.add(local_deleted as i32); + glean_metrics::logins_store::mirror_undecryptable_deleted.add(mirror_deleted as i32); + Ok(()) } fn mark_mirror_overridden(&self, guid: &str) -> Result<()> { @@ -2736,8 +2726,7 @@ mod tests { }) .unwrap(); - let result = db - .delete_local_records_for_remote_replacement(vec![login.guid_str()]) + db.delete_local_records_for_remote_replacement(vec![login.guid_str()]) .unwrap(); let local_guids = get_local_guids(&db); @@ -2745,8 +2734,6 @@ mod tests { let mirror_guids = get_mirror_guids(&db); assert_eq!(mirror_guids.len(), 0); - - assert_eq!(result.local_deleted, 1); } mod test_find_login_to_update { diff --git a/components/logins/src/key_regeneration.rs b/components/logins/src/key_regeneration.rs new file mode 100644 index 00000000000..b7333ab1418 --- /dev/null +++ b/components/logins/src/key_regeneration.rs @@ -0,0 +1,25 @@ +/* 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 http://mozilla.org/MPL/2.0/. */ + +use crate::glean_metrics; + +pub enum KeyRegenerationEventReason { + Lost, + Corrupt, + Other, +} + +pub fn record_key_regeneration_event(reason: KeyRegenerationEventReason) { + match reason { + KeyRegenerationEventReason::Lost => { + glean_metrics::logins_store::key_regenerated_lost.record(None); + } + KeyRegenerationEventReason::Corrupt => { + glean_metrics::logins_store::key_regenerated_corrupt.record(None); + } + KeyRegenerationEventReason::Other => { + glean_metrics::logins_store::key_regenerated_other.record(None); + } + } +} diff --git a/components/logins/src/lib.rs b/components/logins/src/lib.rs index 79f16cb8620..f062c05f5b4 100644 --- a/components/logins/src/lib.rs +++ b/components/logins/src/lib.rs @@ -10,6 +10,7 @@ mod error; mod login; mod db; +mod key_regeneration; mod schema; mod store; mod sync; @@ -21,13 +22,18 @@ uniffi::include_scaffolding!("logins"); #[cfg(feature = "keydb")] pub use db_crypto::{NSSKeyManager, PrimaryPasswordAuthenticator}; -pub use crate::db::{LoginDb, LoginsDeletionMetrics}; +pub use crate::db::LoginDb; pub use crate::error::*; +pub use crate::key_regeneration::*; pub use crate::login::*; pub use crate::store::*; pub use crate::sync::{LoginsBridgedEngine, LoginsSyncEngine}; use std::sync::Arc; +mod glean_metrics { + pub use metrics_support::logins_store; +} + /// Identifier for the logins key, under which the key is stored in NSS. #[cfg(feature = "keydb")] static KEY_NAME: &str = "as-logins-key"; diff --git a/components/logins/src/logins.udl b/components/logins/src/logins.udl index 0ba079306a5..32bc6cb3194 100644 --- a/components/logins/src/logins.udl +++ b/components/logins/src/logins.udl @@ -6,6 +6,9 @@ namespace logins { /// Create a LoginStore with StaticKeyManager by passing in a db path and a /// static key LoginStore create_login_store_with_static_key_manager(string path, string key); + + /// Record key regeneration metrics + void record_key_regeneration_event(KeyRegenerationEventReason reason); }; /// A login entry from the user, not linked to any database record. @@ -94,13 +97,6 @@ dictionary LoginCandidate { string password_field; }; -/// Metrics tracking deletion of logins that cannot be decrypted, see `delete_undecryptable_records_for_remote_replacement` -/// for more details -dictionary LoginsDeletionMetrics { - u64 local_deleted; - u64 mirror_deleted; -}; - /// These are the errors returned by our public API. [Error] interface LoginsApiError { @@ -215,7 +211,7 @@ interface LoginStore { /// NB: This function was created to unblock iOS logins users who are unable to sync logins and should not be used /// outside of this use case. [Throws=LoginsApiError, Self=ByArc] - LoginsDeletionMetrics delete_undecryptable_records_for_remote_replacement(); + void delete_undecryptable_records_for_remote_replacement(); [Throws=LoginsApiError] void touch([ByRef] string id); @@ -368,3 +364,9 @@ dictionary RunMaintenanceOptions { // Wipe un-decryptable logins. These will hopefully come back on the next sync. boolean delete_undecryptable_records_for_remote_replacement=true; }; + +enum KeyRegenerationEventReason { + "Lost", + "Corrupt", + "Other", +}; diff --git a/components/logins/src/store.rs b/components/logins/src/store.rs index 99ba904405b..f96323e118c 100644 --- a/components/logins/src/store.rs +++ b/components/logins/src/store.rs @@ -1,7 +1,7 @@ /* 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 http://mozilla.org/MPL/2.0/. */ -use crate::db::{LoginDb, LoginsDeletionMetrics}; +use crate::db::LoginDb; use crate::error::*; use crate::login::{ BulkResultEntry, EncryptedLogin, Login, LoginCandidate, LoginEntry, LoginEntryWithMeta, @@ -290,9 +290,7 @@ impl LoginStore { } #[handle_error(Error)] - pub fn delete_undecryptable_records_for_remote_replacement( - self: Arc, - ) -> ApiResult { + pub fn delete_undecryptable_records_for_remote_replacement(self: Arc) -> ApiResult<()> { // This function was created for the iOS logins verification logic that will // remove records that prevent logins syncing. Once the verification logic is // removed from iOS, this function can be removed from the store. @@ -301,9 +299,9 @@ impl LoginStore { let engine = LoginsSyncEngine::new(Arc::clone(&self))?; let db = self.lock_db()?; - let deletion_stats = db.delete_undecryptable_records_for_remote_replacement()?; + db.delete_undecryptable_records_for_remote_replacement()?; engine.set_last_sync(&db, ServerTimestamp(0))?; - Ok(deletion_stats) + Ok(()) } #[handle_error(Error)] diff --git a/components/places/Cargo.toml b/components/places/Cargo.toml index 7848629032e..966556a4d0c 100644 --- a/components/places/Cargo.toml +++ b/components/places/Cargo.toml @@ -7,9 +7,6 @@ license = "MPL-2.0" exclude = ["/android", "/ios"] [features] -# Use Firefox-on-Glean to publish metrics (Desktop) -# Note: if set, we will not use `glean-sym` -glean-fog = ["dep:glean"] [dependencies] sync15 = { path = "../sync15" } @@ -30,12 +27,12 @@ memchr = "2.3" dogear = "0.5" interrupt-support = { path = "../support/interrupt" } error-support = { path = "../support/error" } +metrics-support = { path = "../support/metrics" } sync-guid = { path = "../support/guid", features = ["rusqlite_support", "random"]} thiserror = "2" anyhow = "1.0" uniffi = { version = "0.32" } glean = { version = "71", optional = true } -glean-sym = "71" [dev-dependencies] error-support = { path = "../support/error", features = ["testing"] } @@ -44,4 +41,3 @@ sql-support = { path = "../support/sql" } [build-dependencies] uniffi = { version = "0.32", features=["build"]} -glean-build = { git = "https://github.com/mozilla/glean", tag = "v71.0.0" } diff --git a/components/places/build.rs b/components/places/build.rs index 3a29758ef0e..98898577335 100644 --- a/components/places/build.rs +++ b/components/places/build.rs @@ -4,19 +4,4 @@ fn main() { uniffi::generate_scaffolding("./src/places.udl").unwrap(); - build_metrics(); -} - -fn build_metrics() { - let format = if cfg!(feature = "glean-fog") { - "rust" - } else { - "rust_sym" - }; - - glean_build::Builder::default() - .file("metrics.yaml") - .format(format) - .generate() - .expect("Error generating Glean Rust bindings"); } diff --git a/components/places/src/lib.rs b/components/places/src/lib.rs index 1c95dd898fb..36a27ba9c65 100644 --- a/components/places/src/lib.rs +++ b/components/places/src/lib.rs @@ -38,8 +38,8 @@ pub use crate::types::*; pub use ffi::*; -pub mod glean_metrics { - include!(concat!(env!("OUT_DIR"), "/glean_metrics.rs")); +mod glean_metrics { + pub use metrics_support::places_manager; } uniffi::custom_type!(Guid, String, { diff --git a/components/support/error/Cargo.toml b/components/support/error/Cargo.toml index 8461a334415..5c2ba5eeddf 100644 --- a/components/support/error/Cargo.toml +++ b/components/support/error/Cargo.toml @@ -11,8 +11,7 @@ exclude = ["/android"] backtrace = { version = "0.3", optional = true} error-support-macros = { path = "macros" } env_logger = { version = "0.10", default-features = false } -glean = { version = "71", optional = true } -glean-sym = { version = "71" } +metrics-support = { path = "../metrics" } lazy_static = { version = "1.4" } log = { version = "0.4" } parking_lot = { version = ">=0.11,<=0.12" } @@ -24,10 +23,7 @@ tracing-subscriber = { version = "0.3", default-features = false, features = ["r [build-dependencies] uniffi = { version = "0.32", features=["build"]} -glean-build = { git = "https://github.com/mozilla/glean", tag = "v71.0.0" } [features] backtrace = ["dep:backtrace"] testing = [] -# Use Firefox-on-Glean to publish metrics (Desktop) -glean-fog = ["dep:glean"] diff --git a/components/support/error/build.rs b/components/support/error/build.rs deleted file mode 100644 index 4237f78167b..00000000000 --- a/components/support/error/build.rs +++ /dev/null @@ -1,18 +0,0 @@ -/* 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 http://mozilla.org/MPL/2.0/. */ - -fn main() { - let format = if cfg!(feature = "glean-fog") { - "rust" - } else { - "rust_sym" - }; - - glean_build::Builder::default() - .file("metrics.yaml") - .file("pings.yaml") - .format(format) - .generate() - .expect("Error generating Glean Rust bindings"); -} diff --git a/components/support/error/src/lib.rs b/components/support/error/src/lib.rs index a075eedebcb..e289e404620 100644 --- a/components/support/error/src/lib.rs +++ b/components/support/error/src/lib.rs @@ -179,8 +179,8 @@ macro_rules! define_error { }; } -pub mod glean_metrics { - include!(concat!(env!("OUT_DIR"), "/glean_metrics.rs")); +mod glean_metrics { + pub use metrics_support::rust_component_errors; } uniffi::setup_scaffolding!("errorsupport"); diff --git a/components/support/metrics/Cargo.toml b/components/support/metrics/Cargo.toml new file mode 100644 index 00000000000..0b6c19278b6 --- /dev/null +++ b/components/support/metrics/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "metrics-support" +version = "0.1.0" +edition = "2021" +license = "MPL-2.0" +autotests = false + +[dependencies] +anyhow = "1" +glean = { version = "71", optional = true } +glean-sym = { version = "71" } + +[build-dependencies] +glean-build = { git = "https://github.com/mozilla/glean", tag = "v71.0.0" } + +[features] +# Use Firefox-on-Glean to publish metrics (Desktop) +fog = ["dep:glean"] diff --git a/components/support/metrics/build.rs b/components/support/metrics/build.rs new file mode 100644 index 00000000000..afe82a01345 --- /dev/null +++ b/components/support/metrics/build.rs @@ -0,0 +1,27 @@ +/* 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 http://mozilla.org/MPL/2.0/. + */ + +/// Metrics files to process +const METRICS_FILES: &[&str] = &[ + "components/logins/metrics.yaml", + "components/places/metrics.yaml", + "components/support/error/metrics.yaml", + "components/support/error/pings.yaml", +]; + +/// Generate Glean metrics code +fn main() { + let format = if cfg!(feature = "fog") { + "rust" + } else { + "rust_sym" + }; + + glean_build::Builder::default() + .files(METRICS_FILES.iter().map(|s| format!("../../../{s}"))) + .format(format) + .generate() + .expect("Error generating Glean Rust bindings"); +} diff --git a/components/support/metrics/src/lib.rs b/components/support/metrics/src/lib.rs new file mode 100644 index 00000000000..f43ed868b0f --- /dev/null +++ b/components/support/metrics/src/lib.rs @@ -0,0 +1,5 @@ +/* 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 http://mozilla.org/MPL/2.0/. */ + +include!(concat!(env!("OUT_DIR"), "/glean_metrics.rs"));