Bug 1823678 - Integrate Server Knobs into Fenix

fenix/114.1.0
Bruno Rosa 1 year ago committed by mergify[bot]
parent 2a9d721bc7
commit 581a58b1c3

@ -15,6 +15,14 @@ cookie-banners:
sections-enabled:
type: json
description: This property provides a lookup table of whether or not the given section should be enabled.
glean:
description: A feature that provides server-side configurations for Glean metrics (aka Server Knobs).
hasExposure: true
exposureDescription: ""
variables:
metrics-enabled:
type: json
description: "A map of metric base-identifiers to booleans representing the state of the 'enabled' flag for that metric."
growth-data:
description: A feature measuring campaign growth data
hasExposure: true

@ -316,6 +316,14 @@ features:
type: List<OnboardingPanel>
default: ["themes", "toolbar-placement", "sync", "tcp", "privacy-notice"]
glean:
description: "A feature that provides server-side configurations for Glean metrics (aka Server Knobs)."
variables:
metrics-enabled:
description: "A map of metric base-identifiers to booleans representing the state of the 'enabled' flag for that metric."
type: Map<String, Boolean>
default: {}
types:
objects: {}

@ -197,6 +197,9 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
buildInfo = GleanBuildInfo.buildInfo,
)
// Set the metric configuration from Nimbus.
Glean.setMetricsEnabledConfig(FxNimbus.features.glean.value().metricsEnabled)
// We avoid blocking the main thread on startup by setting startup metrics on the background thread.
val store = components.core.store
GlobalScope.launch(Dispatchers.IO) {

Loading…
Cancel
Save