diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt index c33ebef1af..9baa0a7397 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt @@ -23,6 +23,8 @@ import kotlinx.coroutines.Job import kotlinx.coroutines.launch import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.runBlocking +import mozilla.components.service.glean.BuildConfig +import mozilla.components.service.glean.config.Configuration import org.mozilla.fenix.GleanMetrics.QrScanner import org.mozilla.fenix.GleanMetrics.Library import org.mozilla.fenix.GleanMetrics.ErrorPage @@ -243,7 +245,7 @@ class GleanMetricsService(private val context: Context) : MetricsService { starter = CoroutineScope(Dispatchers.Default).launch { Glean.registerPings(Pings) - Glean.initialize(context) + Glean.initialize(context, Configuration(channel = BuildConfig.BUILD_TYPE)) Metrics.apply { defaultBrowser.set(Browsers.all(context).isDefaultBrowser)