mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.2k stars 2.92k forks source link

Add telemetry error to monitor abrupt changes in user tab count #22180

Open data-sync-user opened 3 weeks ago

data-sync-user commented 3 weeks ago

We should be able to monitor significant changes in tab counts between when the app is backgrounded, and a short time after it is resumed. Apart from Close All Tabs actions, there should be no scenarios in which a multi-tab drop in tab count can be observed. As a result this could be used as a means to help monitor bugs in production that are causing potential tab loss for users.

Plan for now is to add a MetricKit error so that this can potentially be added to our health dashboard.

Ex: https://github.com/mozilla-mobile/firefox-ios/blob/986ee486346c652655ae4f5409168e4f4ce9abcb/firefox-ios/Client/Telemetry/MetricKit/MetricKitWrapper.swift#L47

┆Issue is synchronized with this Jira Task

data-sync-user commented 2 weeks ago

➤ Matt Reagan commented:

QA note: this is a new telemetry event that is sent only when a specific type of error is detected, there will be no direct way to validate this event directly at the moment. LMK if any questions/concerns.