Add telemetry for pre-continuous-onboarding timestamp backfill
Categories
(Firefox for Android :: Experimentation and Telemetry, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: towhite, Assigned: towhite)
References
Details
(Whiteboard: [android-activation-trust] [fxdroid])
Attachments
(1 external file)
migratePreContinuousOnboardingUserIfNeeded() (added in bug 2071254) backfills onboardingCompletedTimestamp and the day-N continuous onboarding stage timestamps for users who either completed initial onboarding before continuous onboarding existed, or bypassed onboarding entirely through BaseBrowserFragment.observeTabSource(). The function cannot distinguish between these two cohorts, and the bypass cohort is expected to keep recurring going forward rather than tapering off like the historical one.
Add a Glean event recorded each time this migration backfills a user, with an extra key timestamp_source (install_time vs current_time, reflecting which fallback in getApplicationInstalledTime() was used). This will let us measure how many users are affected and check whether the migration keeps firing at a steady rate over time (expected if the bypass cohort keeps recurring) versus dropping off (expected if it were purely the historical cohort).
Updated•2 months ago
|
Adds completionStateMigrated and completionStateOverwritten Glean events to OnboardingCompletionStateMigration.kt,
recording which condition backfilled a user's onboarding completion state (unset timestamp vs. predating the
continuous onboarding rollout) and whether a specific preference held unexpected genuine progress before being
overwritten. completionStateOverwritten also records which migration path triggered it, since an overwrite of
onboardingCompletedTimestamp is expected under the predates-cutoff path but any overwrite under the unset-timestamp
path means progress exists that shouldn't.
Adds a reconciliationOutcome labeled counter for the two no-op paths (seventh-day stage already complete, or the
initial timestamp postdates the release cutoff), which otherwise have no telemetry of their own. Combined with
completionStateMigrated's migration_reason breakdown, this gives a full denominator for the population
reconcileOnboardingCompletionState() runs over without joining against another ping.
Also adds daySevenCompleted to ContinuousOnboardingFeature.kt, recording whether the day-7 continuous onboarding
stage resolved because the user saw the IP Protection onboarding prompt, because they are permanently ineligible, or
because the prompt is no longer allowed to be shown to them, so the ratio between the outcomes is measurable.
All events record after the underlying state mutation completes rather than before, so a future failure partway
through the mutation cannot produce a telemetry event for a change that did not actually happen.
Adds tests asserting that each metric is recorded on the path it belongs to, with the expected extras, and not on
the others.
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Description
•