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