From 77b4f0ee4b90c177a5f69b538040b39f3f84e464 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Fri, 11 Oct 2024 09:29:24 +0000 Subject: [PATCH] Bug 1921440 - Define new `dau-reporting` ping and contained metrics r=frank,data-stewards,TravisLong This change allows us to offer Firefox users more granular choices in data collection. Differential Revision: https://phabricator.services.mozilla.com/D225200 --- browser/modules/metrics.yaml | 6 +++++ toolkit/components/glean/pings.yaml | 28 +++++++++++++++++++++++ toolkit/components/telemetry/metrics.yaml | 3 +++ 3 files changed, 37 insertions(+) diff --git a/browser/modules/metrics.yaml b/browser/modules/metrics.yaml index ef251cc9e38c..0a2f45527dd1 100644 --- a/browser/modules/metrics.yaml +++ b/browser/modules/metrics.yaml @@ -28,10 +28,12 @@ browser.engagement: - https://bugzilla.mozilla.org/show_bug.cgi?id=1741674 - https://bugzilla.mozilla.org/show_bug.cgi?id=1755050 - https://bugzilla.mozilla.org/show_bug.cgi?id=1781578 + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 data_reviews: - https://bugzilla.mozilla.org/show_bug.cgi?id=1545172#c8 - https://bugzilla.mozilla.org/show_bug.cgi?id=1781578 - https://bugzilla.mozilla.org/show_bug.cgi?id=1811152#c5 + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 data_sensitivity: - interaction notification_emails: @@ -40,6 +42,7 @@ browser.engagement: send_in_pings: - baseline - metrics + - dau-reporting no_lint: - BASELINE_PING @@ -57,10 +60,12 @@ browser.engagement: - https://bugzilla.mozilla.org/show_bug.cgi?id=1741674 - https://bugzilla.mozilla.org/show_bug.cgi?id=1755050 - https://bugzilla.mozilla.org/show_bug.cgi?id=1781578 + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 data_reviews: - https://bugzilla.mozilla.org/show_bug.cgi?id=1535169#c14 - https://bugzilla.mozilla.org/show_bug.cgi?id=1781578 - https://bugzilla.mozilla.org/show_bug.cgi?id=1811152#c5 + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 data_sensitivity: - interaction notification_emails: @@ -69,6 +74,7 @@ browser.engagement: send_in_pings: - baseline - metrics + - dau-reporting no_lint: - BASELINE_PING diff --git a/toolkit/components/glean/pings.yaml b/toolkit/components/glean/pings.yaml index 22c49aab7ee7..0720371bc9ba 100644 --- a/toolkit/components/glean/pings.yaml +++ b/toolkit/components/glean/pings.yaml @@ -12,3 +12,31 @@ --- $schema: moz://mozilla.org/schemas/glean/pings/2-0-0 + +dau-reporting: + description: | + Minimal ping to measure DAU. + Sent on the baseline schedule. + include_client_id: true + send_if_empty: true + bugs: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 + data_reviews: + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 + notification_emails: + - glean-team@mozilla.com + - jrediger@mozilla.com + - fbertsch@mozilla.com + reasons: + dirty_startup: | + The ping was submitted at startup, because the application process was + killed before the Glean SDK had the chance to generate this ping, before + becoming inactive, in the last session. + inactive: | + The ping was submitted when becoming inactive. + active: | + The ping was submitted when the application became active again, + which includes when the application starts. + metadata: + ping_schedule: + - baseline diff --git a/toolkit/components/telemetry/metrics.yaml b/toolkit/components/telemetry/metrics.yaml index ea440d89db0a..021a8617cd00 100644 --- a/toolkit/components/telemetry/metrics.yaml +++ b/toolkit/components/telemetry/metrics.yaml @@ -26,8 +26,10 @@ legacy.telemetry: Does not need to be sent in the Glean "deletion-request" ping. bugs: - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549 + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 data_reviews: - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549 + - https://bugzilla.mozilla.org/show_bug.cgi?id=1921440 data_sensitivity: - technical - highly_sensitive @@ -42,6 +44,7 @@ legacy.telemetry: - 'events' - 'newtab' - 'baseline' + - 'dau-reporting' profile_group_id: type: uuid