File: metrics.yaml

package info (click to toggle)
firefox-esr 140.6.0esr-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,552,424 kB
  • sloc: cpp: 7,430,808; javascript: 6,389,773; ansic: 3,712,263; python: 1,393,776; xml: 628,165; asm: 426,918; java: 184,004; sh: 65,744; makefile: 19,302; objc: 13,059; perl: 12,912; yacc: 4,583; cs: 3,846; pascal: 3,352; lex: 1,720; ruby: 1,226; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10
file content (749 lines) | stat: -rw-r--r-- 27,145 bytes parent folder | download | duplicates (9)
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
# 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/.

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

search.engine.default:
  engine_id:
    type: string
    description: |
      Deprecated in Fx139, please use provider_id, partner_code,
      overridden_by_third_party and display_name instead.

      The telemetry id of the search engine.
      For example: "engine1"

      For application-provided engines, this is the identifier plus telemetry
      suffix supplied by the configuration.
      For other engines, this is `other-<engineName>`.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1089670
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1138503
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  provider_id:
    type: string
    description: |
      The identifier of the user's default search engine if the search engine is
      an application provided engine. For user installed engines, this value will
      be `other`.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1089670
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1138503
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  partner_code:
    type: string
    description: |
      The partner code of the user's default search engine, if defined/known,
      that is being used for the search. Not all search engines have partner
      codes.

      May be empty for engines that are overridden by a third-party add-on or
      OpenSearch engine.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1089670
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1138503
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  overridden_by_third_party:
    type: boolean
    description: |
      Set to true if the user's default search engine has been allowed to be
      overridden by a third-party add-on or OpenSearch engine.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1089670
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1138503
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  display_name:
    type: string
    description: |
      The display name of the user's default engine.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1164159
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1164159#c60
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'

  load_path:
    type: string
    description: |
      A path relating to where the search engine was installed/loaded from.
      For example:
        `[app]appDefault` for an app-provided engine.
        `[addon]<extension id>` for a WebExtension-based engine.
        `[https]developer.mozilla.org/mdn-web-docs.xml` for an OpenSearch-based
        engine.
        `[policy]` for an enteprise policy engine.
        `[user]` for a search engine defined by the user or generated from a
        web page.
      Note: this metric is truncated at 100 characters.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1164159
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1164159#c60
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - web_activity
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'

  submission_url:
    type: url
    description: |
      The submission URL of the default engine. This is only reported in the
      cases where:
        The engine is an application provided engine.
        The engine has the same name as an application provided engine.
        The engine matches one of a specific list of well known search engines.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1164159
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1164159#c60
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - web_activity
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'

  changed:
    type: event
    description: |
      Recorded when the default search engine is changed.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1634555
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1634555
    data_sensitivity:
      - web_activity
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    extra_keys:
      previous_engine_id:
        type: string
        description: The id of the previous default engine.
      new_engine_id:
        type: string
        description: The id of the new default engine.
      new_display_name:
        type: string
        description: The display name of the new default engine.
      new_load_path:
        type: string
        description: |
          The path relating to where the new default engine was installed/loaded
          from.
      new_submission_url:
        type: string
        description: |
          The new submission URL of the new default engine. This is
          limited to 100 characters.
      change_reason:
        type: string
        description: |
          The reason for the change of engine. For possible values,
          see `REASON_CHANGE_MAP` in
          https://searchfox.org/mozilla-central/source/toolkit/components/search/SearchService.sys.mjs
          This was renamed from change_source to change_reason in Fx 139.

search.engine.private:
  engine_id:
    type: string
    description: |
      Deprecated in Fx139, please use provider_id, partner_code,
      overridden_by_third_party and display_name instead.

      The telemetry id of the search engine.
      For example: "engine1"

      For application-provided engines, this is the identifier plus telemetry
      suffix supplied by the configuration.
      For other engines, this is `other-<engineName>`.

      If this string is an empty string (`""`), this means that one or both of
      the preferences `browser.search.separatePrivateDefault` and
      `browser.search.separatePrivateDefault.ui.enabled` are set to false.
      It is possible that the user selects the same private engine as for the
      default engine, and hence both versions of these fields will be filled in.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016#c8
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  provider_id:
    type: string
    description: |
      The identifier of the user's default search engine if the search engine is
      an application provided engine. For user installed engines, this value will
      be `other`.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1089670
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1138503
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  partner_code:
    type: string
    description: |
      The partner code of the user's default search engine, if defined/known,
      that is being used for the search. Not all search engines have partner
      codes.

      May be empty for engines that are overridden by a third-party add-on or
      OpenSearch engine.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1089670
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1138503
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  overridden_by_third_party:
    type: boolean
    description: |
      Set to true if the user's default search engine has been allowed to be
      overridden by a third-party add-on or OpenSearch engine.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1089670
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1138503
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1755549
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1877721
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1961206
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'
      - 'newtab'

  display_name:
    type: string
    description: |
      The display name of the user's default engine.

      If this string is an empty string (`""`), this means that one or both of
      the preferences `browser.search.separatePrivateDefault` and
      `browser.search.separatePrivateDefault.ui.enabled` are set to false.
      It is possible that the user selects the same private engine as for the
      default engine, and hence both versions of these fields will be filled in.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016#c8
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'

  load_path:
    type: string
    description: |
      A path relating to where the search engine was installed/loaded from.
      For example:
        `[app]appDefault` for an app-provided engine.
        `[addon]<extension id>` for a WebExtension-based engine.
        `[https]developer.mozilla.org/mdn-web-docs.xml` for an OpenSearch-based
        engine.
        `[policy]` for an enteprise policy engine.
        `[user]` for a search engine defined by the user or generated from a
        web page.
      Note: this metric is truncated at 100 characters.

      If this string is an empty string (`""`), this means that one or both of
      the preferences `browser.search.separatePrivateDefault` and
      `browser.search.separatePrivateDefault.ui.enabled` are set to false.
      It is possible that the user selects the same private engine as for the
      default engine, and hence both versions of these fields will be filled in.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016#c8
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - web_activity
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'

  submission_url:
    type: url
    description: |
      The submission URL of the default engine. This is only reported in the
      cases where:
        The engine is an application provided engine.
        The engine has the same name as an application provided engine.
        The engine matches one of a specific list of well known search engines.
      If this string is an empty string (`""`), this means that one or both of
      the preferences `browser.search.separatePrivateDefault` and
      `browser.search.separatePrivateDefault.ui.enabled` are set to false.
      It is possible that the user selects the same private engine as for the
      default engine, and hence both versions of these fields will be filled in.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1563016#c8
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1766999
    data_sensitivity:
      - web_activity
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    lifetime: application
    send_in_pings:
      - 'metrics'

  changed:
    type: event
    description: |
      Recorded when the default search engine is changed
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1634555
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1634555
    data_sensitivity:
      - web_activity
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - rev-data@mozilla.com
    expires: never
    extra_keys:
      previous_engine_id:
        type: string
        description: The id of the previous default engine.
      new_engine_id:
        type: string
        description: The id of the new default engine.
      new_display_name:
        type: string
        description: The display name of the new default engine.
      new_load_path:
        type: string
        description: |
          The path relating to where the new default engine was installed/loaded
          from.
      new_submission_url:
        type: string
        description: |
          The new submission URL of the new default engine. This is
          limited to 100 characters.
      change_reason:
        type: string
        description: |
          The reason for the change of engine. For possible values,
          see `REASON_CHANGE_MAP` in
          https://searchfox.org/mozilla-central/source/toolkit/components/search/SearchService.sys.mjs
          This was renamed from change_source to change_reason in Fx 139.

search.service:
  startup_time:
    type: timing_distribution
    time_unit: nanosecond
    description: |
      The time duration it takes for the search service to start up.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1832509
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1832509#c3
    notification_emails:
      - fx-search-telemetry@mozilla.com
    data_sensitivity:
      - technical
    expires: never

  initialization_status:
    type: labeled_counter
    description: |
      Counts the type of initialization statuses on start up.
      failedSettings - failed loading and migrating the search settings file.
      failedFetchEngines - failed to load or parse the configuration from remote
                           settings.
      failedLoadEngines - failed to create all the search engines from the
                          configuration or user installed engines.
      failedLoadSettingsAddonManager - the addon manager ready promise was rejected. (from FF135)
      settingsCorrupt - the search settings were reset because of an exception, but
                        the search service still finished initializing. (from FF136)
      success - search service successfully initialized.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1849013
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1849013
    notification_emails:
      - fx-search-telemetry@mozilla.com
    data_sensitivity:
      - technical
    expires: never
    labels:
      - failedSettings
      - failedFetchEngines
      - failedLoadEngines
      - failedLoadSettingsAddonManager
      - settingsCorrupt
      - success

browser.searchinit:
  engine_invalid_webextension:
    type: labeled_quantity
    description: >
      Records the WebExtension ID of a search engine where the
      WebExtension is not installed (= 1), disabled (= 2), search engine
      no longer specified (= 4), a different name (= 5), where the
      submission URL is different between the search engine and the
      WebExtension (= 6). The value '3' has been replaced by '6' to
      distinguish newer entries.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.searchinit.engine_invalid_webextension, which was removed
      in Fx 139.
    bugs:
      - https://bugzil.la/1665938
      - https://bugzil.la/1691050
      - https://bugzil.la/1725501
      - https://bugzil.la/1763528
      - https://bugzil.la/1801017
      - https://bugzil.la/1832463
      - https://bugzil.la/1871199
      - https://bugzil.la/1897049
      - https://bugzil.la/1933859
    data_reviews:
      - https://bugzil.la/1665938
      - https://bugzil.la/1691050
      - https://bugzil.la/1725501
      - https://bugzil.la/1763528
      - https://bugzil.la/1801017
      - https://bugzil.la/1832463
      - https://bugzil.la/1871199
      - https://bugzil.la/1897049
      - https://bugzil.la/1933859
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - mbanner@mozilla.com
    expires: 147
    unit: custom enum value

  secure_opensearch_engine_count:
    type: quantity
    description: >
      Records the number of secure (i.e., using https) OpenSearch search
      engines a given user has installed.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.searchinit.secure_opensearch_engine_count.
    bugs:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    data_reviews:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    notification_emails:
      - fx-search-telemetry@mozilla.com
    expires: 145
    unit: engines
    telemetry_mirror: BROWSER_SEARCHINIT_SECURE_OPENSEARCH_ENGINE_COUNT

  insecure_opensearch_engine_count:
    type: quantity
    description: >
      Records the number of insecure (i.e., using http) OpenSearch search
      engines a given user has installed.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.searchinit.insecure_opensearch_engine_count.
    bugs:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    data_reviews:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    notification_emails:
      - fx-search-telemetry@mozilla.com
    expires: 145
    unit: engines
    telemetry_mirror: BROWSER_SEARCHINIT_INSECURE_OPENSEARCH_ENGINE_COUNT

  secure_opensearch_update_count:
    type: quantity
    description: >
      Records the number of OpenSearch search engines with secure updates
      enabled (i.e., using https) a given user has installed.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.searchinit.secure_opensearch_update_count.
    bugs:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    data_reviews:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    notification_emails:
      - fx-search-telemetry@mozilla.com
    expires: 145
    unit: updates
    telemetry_mirror: BROWSER_SEARCHINIT_SECURE_OPENSEARCH_UPDATE_COUNT

  insecure_opensearch_update_count:
    type: quantity
    description: >
      Records the number of OpenSearch search engines with insecure
      updates enabled (i.e., using http) a given user has installed.
      This metric was generated to correspond to the Legacy Telemetry
      scalar browser.searchinit.insecure_opensearch_update_count.
    bugs:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    data_reviews:
      - https://bugzil.la/1789438
      - https://bugzil.la/1811158
      - https://bugzil.la/1846899
      - https://bugzil.la/1881408
      - https://bugzil.la/1916866
    notification_emails:
      - fx-search-telemetry@mozilla.com
    expires: 145
    unit: updates
    telemetry_mirror: BROWSER_SEARCHINIT_INSECURE_OPENSEARCH_UPDATE_COUNT

search:
  suggestions_latency:
    type: labeled_timing_distribution
    description: >
      Records the latencies (ms) of search suggestions fetches per search
      engine. Keys in this histogram are search engine identifiers for built-in
      search engines and 'other' for non-built-in search engines.

      This metric was generated to correspond to the Legacy Telemetry
      exponential histogram SEARCH_SUGGESTIONS_LATENCY_MS.
    time_unit: millisecond
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1743885
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1743885
    notification_emails:
      - fx-search-telemetry@mozilla.com
      - adw@mozilla.com
    expires: never
    telemetry_mirror: SEARCH_SUGGESTIONS_LATENCY_MS

search.suggestions:
  successful_requests:
    type: labeled_counter
    description: >
      Counts the number of successful search suggestion fetches per search
      engine. Only records app provided engines using their short IDs
      ('id', not 'identifier') as labels.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1957950
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1957950
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
    expires: 146
  aborted_requests:
    type: labeled_counter
    description: >
      Counts the number of aborted search suggestion fetches per search
      engine. Only records app provided engines using their short IDs
      ('id', not 'identifier') as labels.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1957950
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1957950
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
    expires: 146
  failed_requests:
    type: labeled_counter
    description: >
      Counts the number of failed search suggestion fetches per search
      engine. Only records app provided engines using their short IDs
      ('id', not 'identifier') as labels.
    bugs:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1957950
    data_reviews:
      - https://bugzilla.mozilla.org/show_bug.cgi?id=1957950
    data_sensitivity:
      - interaction
    notification_emails:
      - fx-search-telemetry@mozilla.com
    expires: 146