File: metrics.yaml

package info (click to toggle)
firefox 142.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,591,884 kB
  • sloc: cpp: 7,451,570; javascript: 6,392,463; ansic: 3,712,584; python: 1,388,569; xml: 629,223; asm: 426,919; java: 184,857; sh: 63,439; makefile: 19,150; objc: 13,059; perl: 12,983; yacc: 4,583; cs: 3,846; pascal: 3,352; lex: 1,720; ruby: 1,003; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 53; csh: 10
file content (1107 lines) | stat: -rw-r--r-- 44,586 bytes parent folder | download
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
# 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:
  use_remote_pref:
    type: boolean
    expires: never
    lifetime: application
    description: >
      Corresponds to the value of `extensions.webextensions.remote` pref.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1850351/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1850351#c2
    data_sensitivity:
      - technical

  use_remote_policy:
    type: boolean
    expires: never
    lifetime: application
    description: >
      Corresponds to the value of `WebExtensionPolicy.useRemoteWebExtensions`.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1850351/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1850351#c2
    data_sensitivity:
      - technical

  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
    no_lint:
      - GIFFT_NON_PING_LIFETIME

  startup_cache_read_errors:
    type: labeled_counter
    expires: never
    description: |
      The number of times an unexpected error has been raised while reading
      the extensions StartupCache file.
    lifetime: application
    notification_emails:
      - addons-dev-internal@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_READ_ERRORS
    no_lint:
      - GIFFT_NON_PING_LIFETIME

  startup_cache_write_bytelength:
    type: quantity
    unit: bytes
    expires: never
    description: |
       The amount of bytes written to the extensions StartupCache file.
    lifetime: application
    notification_emails:
      - addons-dev-internal@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_WRITE_BYTELENGTH
    no_lint:
      - GIFFT_NON_PING_LIFETIME

  process_event:
    type: labeled_counter
    expires: never
    description: |
      Counters for how many times the extension process has crashed or been created.
      The labels with "_fg" / "_bg" suffixes are only recorded in Android builds,
      while the "created" and "crashed" labels are recorded on both Desktop and Android
      builds.
    lifetime: application
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1830157/
      - https://bugzilla.mozilla.org/1848223/
      - https://bugzilla.mozilla.org/1850350/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1830157#c7
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1848223#c4
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1850350#c2
    data_sensitivity:
      - technical
    labels:
      - crashed_bg
      - crashed_fg
      - created_bg
      - created_fg
      - crashed_over_threshold_bg
      - crashed_over_threshold_fg

extensions.apis.dnr:

  startup_cache_read_size:
    type: memory_distribution
    memory_unit: byte
    expires: 145
    description: |
      Amount of data read from the DNR startup cache file.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    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: 145
    description: |
      Amount of time it takes to read data into the DNR startup cache file.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    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: 145
    description: |
      Amount of data written to the DNR startup cache file.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    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: 145
    description: |
      Amount of time it takes to write data into the DNR startup cache file.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    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: 145
    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/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    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
    no_lint:
      - GIFFT_NON_PING_LIFETIME

  validate_rules_time:
    type: timing_distribution
    time_unit: millisecond
    expires: 145
    description: |
      Amount of time it takes to validate DNR rules of individual ruleset
      when dynamic or static rulesets have been loaded from disk.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    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: 145
    description: |
      Amount of time it takes to evaluate DNR rules for one network request.
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    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: 145
    description: |
      Max amount of DNR rules being evaluated.
    lifetime: ping
    notification_emails:
      - addons-dev-internal@mozilla.com
    bugs:
      - https://bugzilla.mozilla.org/1803363/
      - https://bugzilla.mozilla.org/1850890/
      - https://bugzilla.mozilla.org/1881399/
      - https://bugzilla.mozilla.org/1946282/
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1803363#c11
    data_sensitivity:
      - technical
    telemetry_mirror: EXTENSIONS_APIS_DNR_EVALUATE_RULES_COUNT_MAX

extensions.data:

  migrate_result:
    type: event
    description: |
      These events are sent when an extension is migrating its data to the new
      IndexedDB backend.
    bugs:
      - https://bugzilla.mozilla.org/1470213
      - https://bugzilla.mozilla.org/1553297
      - https://bugzilla.mozilla.org/1590736
      - https://bugzilla.mozilla.org/1630596
      - https://bugzilla.mozilla.org/1672570
      - https://bugzilla.mozilla.org/1714251
      - https://bugzilla.mozilla.org/1749878
      - https://bugzilla.mozilla.org/1781974
      - https://bugzilla.mozilla.org/1817100
      - https://bugzilla.mozilla.org/1861295
      - https://bugzilla.mozilla.org/1912166
      - https://bugzilla.mozilla.org/1958151
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1470213#c15
    data_sensitivity:
      - technical
    notification_emails:
      - addons-dev-internal@mozilla.com
    extra_keys:
      addon_id:
        description: Id of the addon.
        type: string
      backend:
        description: The selected backend ("JSONFile" / "IndexedDB").
        type: string
      data_migrated:
        description: The old extension data has been migrated ("y" / "n").
        type: string
      error_name:
        description: |
          A DOMException error name if any ("OtherError" for unknown errors).
          The error has been fatal if the `backend` extra key is "JSONFile",
          otherwise it is a non fatal error which didn't prevented the
          extension from switching to the IndexedDB backend.
        type: string
      has_jsonfile:
        description: The extension has a JSONFile ("y" / "n").
        type: string
      has_olddata:
        description: Extension had some data stored in JSONFile ("y" / "n").
        type: string
    expires: 147

  storage_local_error:
    type: event
    description: |
      These events are collected when an extension triggers an unexpected error
      while running a storage.local API call (e.g. because of some underlying
      QuotaManager and/or IndexedDB error).
    bugs:
      - https://bugzilla.mozilla.org/1606903
      - https://bugzilla.mozilla.org/1649948
      - https://bugzilla.mozilla.org/1689255
      - https://bugzilla.mozilla.org/1730038
      - https://bugzilla.mozilla.org/1763523
      - https://bugzilla.mozilla.org/1811148
      - https://bugzilla.mozilla.org/1861297
      - https://bugzilla.mozilla.org/1912166
      - https://bugzilla.mozilla.org/1958151
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1606903#c3
    data_sensitivity:
      - technical
    notification_emails:
      - addons-dev-internal@mozilla.com
    extra_keys:
      addon_id:
        description: Id of the addon.
        type: string
      method:
        description: The storage.local API method name.
        type: string
      error_name:
        description: |
          A DOMException error name if any ("OtherError" for unknown errors).
        type: string
    expires: 147

  sync_usage_quotas:
    type: event
    description: |
      These events record the basic stat about usage, and are collected the
      first time an extension uses the sync storage API during a session.
    bugs:
      - https://bugzilla.mozilla.org/1915183
      - https://bugzilla.mozilla.org/1958156
    data_reviews:
      - https://phabricator.services.mozilla.com/D222442
    data_sensitivity:
      - technical
    notification_emails:
      - addons-dev-internal@mozilla.com
    extra_keys:
      addon_id:
        description: Id of the addon.
        type: string
      total_size_bytes:
        description: Size of the sync data.
        type: quantity
      items_count:
        description: Number of items in sync storage.
        type: quantity
      items_over_quota:
        description: Count of items larger than QUOTA_BYTES_PER_ITEM.
        type: quantity
      backend:
        description: Backend engine used, currently either "kinto" or "rust"
        type: string
    expires: 147

  migrate_result_count:
    type: labeled_counter
    description: >
      The number of times a storage.local backend data migration has been
      completed and results in one of the categories.

      This metric was generated to correspond to the Legacy Telemetry
      categorical histogram WEBEXT_STORAGE_LOCAL_IDB_MIGRATE_RESULT_COUNT.
    labels:
      - success
      - failure
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1465129
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1465129
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
    notification_emails:
      - addons-dev-internal@mozilla.com
      - lgreco@mozilla.com
    expires: 147
    telemetry_mirror: h#WEBEXT_STORAGE_LOCAL_IDB_MIGRATE_RESULT_COUNT

extensions.counters:

    browser_action_preload_result:
      type: labeled_counter
      expires: never
      description: |
        Number of times an event page hit the idle timeout and results in one of the labels.
      # Keep these labels in sync with the ones in WEBEXT_BROWSERACTION_POPUP_PRELOAD_RESULT_COUNT
      # as defined in Histograms.json
      labels:
        - popupShown
        - clearAfterHover
        - clearAfterMousedown
      lifetime: application
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1297167
        - https://bugzilla.mozilla.org/1513556
        - https://bugzilla.mozilla.org/1578225
        - https://bugzilla.mozilla.org/1623315
        - https://bugzilla.mozilla.org/1666980
        - https://bugzilla.mozilla.org/1706839
        - https://bugzilla.mozilla.org/1745271
        - https://bugzilla.mozilla.org/1777402
        - https://bugzilla.mozilla.org/1811155
        - https://bugzilla.mozilla.org/1861303
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: h#WEBEXT_BROWSERACTION_POPUP_PRELOAD_RESULT_COUNT
      no_lint:
        - GIFFT_NON_PING_LIFETIME

    browser_action_preload_result_by_addonid:
      type: dual_labeled_counter
      description: >
        The number of times a browserAction popup is preloaded and results in one
        of the categories, keyed by addon id.

        This metric was generated to correspond to the Legacy Telemetry
        categorical histogram
        WEBEXT_BROWSERACTION_POPUP_PRELOAD_RESULT_COUNT_BY_ADDONID.
      dual_labels:
        key:
          description: addon id.
        category:
          labels:
            - popupShown
            - clearAfterHover
            - clearAfterMousedown
          description: Labels of the keyed categorical legacy telemetry histogram
            WEBEXT_BROWSERACTION_POPUP_PRELOAD_RESULT_COUNT_BY_ADDONID.
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958168
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1960567
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958168
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_BROWSERACTION_POPUP_PRELOAD_RESULT_COUNT_BY_ADDONID

    event_page_idle_result:
      type: labeled_counter
      expires: never
      description: |
        Number of times an event page hit the idle timeout and results in one of the labels.
      # Keep these labels in sync with the ones in WEBEXT_EVENTPAGE_IDLE_RESULT_COUNT
      # as defined in Histograms.json
      labels:
        - suspend
        - reset_other
        - reset_event
        - reset_listeners
        - reset_nativeapp
        - reset_streamfilter
        - reset_parentapicall
        - permissions_request
        - launchWebAuthFlow
      lifetime: application
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1787940
        - https://bugzilla.mozilla.org/1817103
        - https://bugzilla.mozilla.org/1861303
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: h#WEBEXT_EVENTPAGE_IDLE_RESULT_COUNT
      no_lint:
        - GIFFT_NON_PING_LIFETIME

    event_page_idle_result_by_addonid:
      type: dual_labeled_counter
      description: >
        The number of times an event page hit the idle timeout and results in one
        of the categories, keyed by addon id.

        This metric was generated to correspond to the Legacy Telemetry
        categorical histogram WEBEXT_EVENTPAGE_IDLE_RESULT_COUNT_BY_ADDONID.
      dual_labels:
        key:
          description: addon id.
        category:
          labels:
            - suspend
            - reset_other
            - reset_event
            - reset_listeners
            - reset_nativeapp
            - reset_streamfilter
            - reset_parentapicall
            - permissions_request
            - launchWebAuthFlow
          description: Labels of the keyed categorical legacy telemetry histogram
            WEBEXT_EVENTPAGE_IDLE_RESULT_COUNT_BY_ADDONID.
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1787940
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1817103
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958168
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1960567
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1787940
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1817103
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958168
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_EVENTPAGE_IDLE_RESULT_COUNT_BY_ADDONID

extensions.timing:

    background_page_load:
      type: timing_distribution
      time_unit: millisecond
      expires: never
      description: |
        Amount of time it takes to load a WebExtensions background page, from when the
        build function is called to when the page has finished processing the onload event.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1353172
        - https://bugzilla.mozilla.org/1489524
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_BACKGROUND_PAGE_LOAD_MS

    background_page_load_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time it takes to load a WebExtensions background page, from
        when the build function is called to when the page has finished processing
        the onload event, keyed by addon id.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_BACKGROUND_PAGE_LOAD_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_BACKGROUND_PAGE_LOAD_MS_BY_ADDONID

    browser_action_popup_open:
      type: timing_distribution
      time_unit: millisecond
      expires: never
      description: |
        Amount of time it takes for a BrowserAction popup to open.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1297167
        - https://bugzilla.mozilla.org/1513556
        - https://bugzilla.mozilla.org/1578225
        - https://bugzilla.mozilla.org/1623315
        - https://bugzilla.mozilla.org/1666980
        - https://bugzilla.mozilla.org/1706839
        - https://bugzilla.mozilla.org/1745271
        - https://bugzilla.mozilla.org/1777402
        - https://bugzilla.mozilla.org/1811155
        - https://bugzilla.mozilla.org/1861303
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_BROWSERACTION_POPUP_OPEN_MS

    browser_action_popup_open_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time it takes for a BrowserAction popup to open, keyed by
        addon id.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_BROWSERACTION_POPUP_OPEN_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_BROWSERACTION_POPUP_OPEN_MS_BY_ADDONID

    content_script_injection:
      type: timing_distribution
      time_unit: millisecond
      expires: never
      description: |
        Amount of time it takes for content scripts from a WebExtension to be injected into a window.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1356323
        - https://bugzilla.mozilla.org/1489524
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_CONTENT_SCRIPT_INJECTION_MS

    content_script_injection_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time it takes for content scripts from a WebExtension to be
        injected into a window, keyed by addon id.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_CONTENT_SCRIPT_INJECTION_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_CONTENT_SCRIPT_INJECTION_MS_BY_ADDONID

    event_page_running_time:
      type: custom_distribution
      unit: ms
      range_min: 1
      range_max: 60000
      bucket_count: 100
      histogram_type: exponential
      expires: never
      description: |
        Amount of time (keyed by addon id) that an event page has been running before being suspended,
        or the entire addon shutdown.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1787940
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_EVENTPAGE_RUNNING_TIME_MS

    event_page_running_time_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time (keyed by addon id) that an event page has been running
        before being suspended, or the entire addon shutdown.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_EVENTPAGE_RUNNING_TIME_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1787940
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1817103
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1787940
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1817103
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_EVENTPAGE_RUNNING_TIME_MS_BY_ADDONID

    extension_startup:
      type: timing_distribution
      time_unit: millisecond
      expires: never
      description: |
        Amount of time it takes for a WebExtension to start up, from when the
        startup function is called to when the startup promise resolves.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1353171
        - https://bugzilla.mozilla.org/1489524
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_EXTENSION_STARTUP_MS

    extension_startup_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time it takes for a WebExtension to start up, from when the
        startup function is called to when the startup promise resolves, keyed by
        addon id.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_EXTENSION_STARTUP_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_EXTENSION_STARTUP_MS_BY_ADDONID

    page_action_popup_open:
      type: timing_distribution
      time_unit: millisecond
      expires: never
      description: |
        Amount of time it takes for a PageAction popup to open.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1297167
        - https://bugzilla.mozilla.org/1513556
        - https://bugzilla.mozilla.org/1578225
        - https://bugzilla.mozilla.org/1623315
        - https://bugzilla.mozilla.org/1666980
        - https://bugzilla.mozilla.org/1706839
        - https://bugzilla.mozilla.org/1745271
        - https://bugzilla.mozilla.org/1777402
        - https://bugzilla.mozilla.org/1811155
        - https://bugzilla.mozilla.org/1861303
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_PAGEACTION_POPUP_OPEN_MS

    page_action_popup_open_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time it takes for a PageAction popup to open, keyed by addon
        id.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_PAGEACTION_POPUP_OPEN_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_PAGEACTION_POPUP_OPEN_MS_BY_ADDONID

    storage_local_get_idb:
      type: timing_distribution
      time_unit: millisecond
      expires: never
      description: |
        Amount of time it takes to perform a get via storage.local using the IndexedDB backend.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1465120
        - https://bugzilla.mozilla.org/1513556
        - https://bugzilla.mozilla.org/1578225
        - https://bugzilla.mozilla.org/1623315
        - https://bugzilla.mozilla.org/1666980
        - https://bugzilla.mozilla.org/1706839
        - https://bugzilla.mozilla.org/1745271
        - https://bugzilla.mozilla.org/1777402
        - https://bugzilla.mozilla.org/1811155
        - https://bugzilla.mozilla.org/1861303
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_STORAGE_LOCAL_IDB_GET_MS

    storage_local_get_idb_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time it takes to perform a get via storage.local using the
        IndexedDB backend, keyed by addon id.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_STORAGE_LOCAL_IDB_GET_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_STORAGE_LOCAL_IDB_GET_MS_BY_ADDONID

    storage_local_set_idb:
      type: timing_distribution
      time_unit: millisecond
      expires: never
      description: |
        Amount of time it takes to perform a set via storage.local using the Indexed backend.
      notification_emails:
        - addons-dev-internal@mozilla.com
      bugs:
        - https://bugzilla.mozilla.org/1465120
        - https://bugzilla.mozilla.org/1513556
        - https://bugzilla.mozilla.org/1578225
        - https://bugzilla.mozilla.org/1623315
        - https://bugzilla.mozilla.org/1666980
        - https://bugzilla.mozilla.org/1706839
        - https://bugzilla.mozilla.org/1745271
        - https://bugzilla.mozilla.org/1777402
        - https://bugzilla.mozilla.org/1811155
        - https://bugzilla.mozilla.org/1861303
        - https://bugzilla.mozilla.org/1820158
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1820158#c8
      data_sensitivity:
        - technical
      telemetry_mirror: WEBEXT_STORAGE_LOCAL_IDB_SET_MS

    storage_local_set_idb_by_addonid:
      type: labeled_timing_distribution
      description: >
        The amount of time it takes to perform a set via storage.local using the
        IndexedDB backend, keyed by addon id.

        This metric was generated to correspond to the Legacy Telemetry
        exponential histogram WEBEXT_STORAGE_LOCAL_IDB_SET_MS_BY_ADDONID.
      time_unit: millisecond
      bugs:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1958154
      data_reviews:
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1483002
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1513556
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1578225
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1623315
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1666980
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1706839
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1745271
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1777402
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1811155
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1861303
        - https://bugzilla.mozilla.org/show_bug.cgi?id=1912170
      notification_emails:
        - addons-dev-internal@mozilla.com
        - lgreco@mozilla.com
      expires: 147
      telemetry_mirror: WEBEXT_STORAGE_LOCAL_IDB_SET_MS_BY_ADDONID