Fix GleanMetricsService to use the new Glean APIs
parent
3b3648e650
commit
f93437c509
|
@ -497,8 +497,10 @@ class GleanMetricsService(private val context: Context) : MetricsService {
|
||||||
// can handle events being recorded before it's initialized.
|
// can handle events being recorded before it's initialized.
|
||||||
gleanInitializer = MainScope().launch {
|
gleanInitializer = MainScope().launch {
|
||||||
Glean.registerPings(Pings)
|
Glean.registerPings(Pings)
|
||||||
Glean.initialize(context,
|
Glean.initialize(
|
||||||
Configuration(channel = BuildConfig.BUILD_TYPE,
|
applicationContext = context,
|
||||||
|
uploadEnabled = true,
|
||||||
|
configuration = Configuration(channel = BuildConfig.BUILD_TYPE,
|
||||||
httpClient = ConceptFetchHttpUploader(
|
httpClient = ConceptFetchHttpUploader(
|
||||||
lazy(LazyThreadSafetyMode.NONE) { context.components.core.client }
|
lazy(LazyThreadSafetyMode.NONE) { context.components.core.client }
|
||||||
)))
|
)))
|
||||||
|
|
Loading…
Reference in New Issue