summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/metrics.yaml
blob: 5812d6ed9452b1f7b832f81b6ce147bb796e308b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Adding a new metric? We have docs for that!
# https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html

---
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
$tags:
  - 'WebExtensions :: General'

extensions:
  startup_cache_load_time:
    type: timespan
    time_unit: millisecond
    expires: never
    description: |
      Time to load and deserialize the extensions startupCache data.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
      - lgreco@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1767336/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1767336#c7
    data_sensitivity:
      - technical
    telemetry_mirror: EXTENSIONS_STARTUPCACHE_LOAD_TIME

extensions.apis.dnr:

  startup_cache_read_size:
    type: memory_distribution
    memory_unit: byte
    expires: 120
    description: |
      Amount of data read from the DNR startup cache file.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: WEBEXT_DNR_STARTUPCACHE_READ_BYTES

  startup_cache_read_time:
    type: timing_distribution
    time_unit: millisecond
    expires: 120
    description: |
      Amount of time it takes to read data into the DNR startup cache file.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: WEBEXT_DNR_STARTUPCACHE_READ_MS

  startup_cache_write_size:
    type: memory_distribution
    memory_unit: byte
    expires: 120
    description: |
      Amount of data written to the DNR startup cache file.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: WEBEXT_DNR_STARTUPCACHE_WRITE_BYTES

  startup_cache_write_time:
    type: timing_distribution
    time_unit: millisecond
    expires: 120
    description: |
      Amount of time it takes to write data into the DNR startup cache file.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: WEBEXT_DNR_STARTUPCACHE_WRITE_MS

  startup_cache_entries:
    type: labeled_counter
    expires: 120
    description: |
      Counters for startup cache data hits or misses on initializating
      DNR rules for extensions loaded on application startup.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    labels:
      - hit
      - miss
    telemetry_mirror: EXTENSIONS_APIS_DNR_STARTUP_CACHE_ENTRIES

  validate_rules_time:
    type: timing_distribution
    time_unit: millisecond
    expires: 120
    description: |
      Amount of time it takes to validate DNR rules of individual ruleset
      when dynamic or static rulesets have been loaded from disk.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: WEBEXT_DNR_VALIDATE_RULES_MS

  evaluate_rules_time:
    type: timing_distribution
    time_unit: millisecond
    expires: 120
    description: |
      Amount of time it takes to evaluate DNR rules for one network request.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: WEBEXT_DNR_EVALUATE_RULES_MS

  evaluate_rules_count_max:
    type: quantity
    unit: rules
    expires: 120
    description: |
      Max amount of DNR rules being evaluated.
    lifetime: ping
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: EXTENSIONS_APIS_DNR_EVALUATE_RULES_COUNT_MAX