Bug 1875515 - record Nimbus is_ready event (backport #5222) (#5268)

(cherry picked from commit 3b2bd69f8ebfdc4b74af71162636a75967ed6556)

Co-authored-by: Charlie <chumphreys@mozilla.com>
fenix/123.0
mergify[bot] 4 months ago committed by GitHub
parent adf6a1bcea
commit f6c6fe8272

@ -371,6 +371,17 @@ features:
- channel: nightly
value:
enabled: true
nimbus-is-ready:
description: >
A feature that provides the number of Nimbus is_ready events to send
when Nimbus finishes launching.
variables:
event-count:
description: The number of events that should be sent.
type: Int
default: 1
types:
objects: {}

@ -70,7 +70,9 @@ fun createNimbus(context: Context, urlString: String?): NimbusApi {
onFetchCallback = {
context.settings().nimbusExperimentsFetched = true
}
}.build(appInfo)
}.build(appInfo).also { nimbusApi ->
nimbusApi.recordIsReady(FxNimbus.features.nimbusIsReady.value().eventCount)
}
}
private fun Context.reportError(message: String, e: Throwable) {

Loading…
Cancel
Save