1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # Adding a new metric? We have docs for that!
6 # https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html
9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
11 - 'Core :: Privacy: Anti-Tracking'
13 bounce.tracking.protection:
15 type: timing_distribution
17 For every purge that is scheduled, we call the ClearDataService to
18 purge persistent storage for each detected bounce tracker. This may
19 do some blocking work on main thread and dispatch some cleanups to
21 Collect telemetry on how long it takes to clear in the wild to
22 determine whether we need to improve performance here.
24 - https://bugzilla.mozilla.org/show_bug.cgi?id=1890582
25 - https://bugzilla.mozilla.org/show_bug.cgi?id=1922601
27 - https://bugzilla.mozilla.org/show_bug.cgi?id=1890582#c4
32 - bvandersloot@mozilla.com
35 num_hosts_per_purge_run:
36 type: custom_distribution
41 histogram_type: linear
43 Number of bounce trackers purged successfully per scheduled purge.
45 - https://bugzilla.mozilla.org/show_bug.cgi?id=1899809
46 - https://bugzilla.mozilla.org/show_bug.cgi?id=1922601
48 - https://bugzilla.mozilla.org/show_bug.cgi?id=1899809
53 - bvandersloot@mozilla.com
59 Counts how often we purge trackers. Giving a high level overview about
60 the effectivness of bounce tracking protection. Allows determining error
61 rate with failure/success label. When in dry mode, we count the purges
62 that would have happened under the dry label.
64 - https://bugzilla.mozilla.org/show_bug.cgi?id=1890578
65 - https://bugzilla.mozilla.org/show_bug.cgi?id=1922601
67 - https://bugzilla.mozilla.org/show_bug.cgi?id=1890578
72 - bvandersloot@mozilla.com
82 Dispatched whenever a bounce tracker site is purged.
84 - https://bugzilla.mozilla.org/1889444
85 - https://bugzilla.mozilla.org/1922602
87 - https://bugzilla.mozilla.org/show_bug.cgi?id=1889444#c16
92 - bvandersloot@mozilla.com
95 - bounce-tracking-protection
99 description: The site host of which the data has been purged.
102 description: Timestamp (seconds since epoch) of the last detected bounce.
105 description: Whether we just pretended to purge since the client is in dry-run mode.
108 description: Whether the purge data call was successful. false indicates an error in ClearDataService.
112 lifetime: application
115 Records the pref value of privacy.bounceTrackingProtection.mode. Values
116 are any of nsIBounceTrackingProtection#Modes.
118 - https://bugzilla.mozilla.org/show_bug.cgi?id=1928062
120 - https://bugzilla.mozilla.org/show_bug.cgi?id=1928062
125 - bvandersloot@mozilla.com
128 purge_count_classified_tracker:
131 Counts sites purged from BTP that are classified as trackers as part of the following lists:
132 [emailtracking-protection, fingerprinting-protection, socialtracking-protection, tracking-protection]
134 - https://bugzilla.mozilla.org/show_bug.cgi?id=1890580
135 - https://bugzilla.mozilla.org/show_bug.cgi?id=1922601
137 - https://bugzilla.mozilla.org/show_bug.cgi?id=1890580
142 - bvandersloot@mozilla.com