diff --git a/app/.experimenter.yaml b/app/.experimenter.yaml index 6689c7550d..3cda440b71 100644 --- a/app/.experimenter.yaml +++ b/app/.experimenter.yaml @@ -28,6 +28,9 @@ glean: hasExposure: true exposureDescription: "" variables: + event-timestamps-enabled: + type: boolean + description: Whether Glean reports all events with precise wall-clock timestamps metrics-enabled: type: json description: "A map of metric base-identifiers to booleans representing the state of the 'enabled' flag for that metric." diff --git a/app/nimbus.fml.yaml b/app/nimbus.fml.yaml index 18910af461..08b94c6458 100644 --- a/app/nimbus.fml.yaml +++ b/app/nimbus.fml.yaml @@ -332,6 +332,10 @@ features: description: "A map of metric base-identifiers to booleans representing the state of the 'enabled' flag for that metric." type: Map default: {} + enable-event-timestamps: + description: "Enables precise event timestamps for Glean events" + type: Boolean + default: false splash-screen: description: "A feature that extends splash screen duration, allowing additional data fetching time for the app's initial run." diff --git a/app/src/main/java/org/mozilla/fenix/FenixApplication.kt b/app/src/main/java/org/mozilla/fenix/FenixApplication.kt index 3343a717b0..5bf11b6e5b 100644 --- a/app/src/main/java/org/mozilla/fenix/FenixApplication.kt +++ b/app/src/main/java/org/mozilla/fenix/FenixApplication.kt @@ -203,6 +203,7 @@ open class FenixApplication : LocaleAwareApplication(), Provider { httpClient = ConceptFetchHttpUploader( lazy(LazyThreadSafetyMode.NONE) { components.core.client }, ), + enableEventTimestamps = FxNimbus.features.glean.value().enableEventTimestamps, ) Glean.initialize(