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 :: Networking'
14 speculative_connect_outcome:
17 Counts the occurrence of each outcome of a speculative connection
19 - https://bugzilla.mozilla.org/show_bug.cgi?id=909865
21 - https://bugzilla.mozilla.org/show_bug.cgi?id=909865
26 - acreskey@mozilla.com
30 - aborted_socket_limit
32 - aborted_https_not_enabled
33 telemetry_mirror: NETWORKING_SPECULATIVE_CONNECT_OUTCOME
35 cookie_timestamp_fixed_count:
38 Counts the number of times a cookie's invalid timestamp was fixed when
39 reading it from the DB.
41 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828126
43 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828126#c5
54 cookie_creation_fixup_diff:
55 type: custom_distribution
58 If we fix up a cookie creation timestamp that is in the future this
59 metric records the number of seconds that timestamp was off from NOW.
61 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828126
63 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828126#c5
71 range_max: 315360000000
73 histogram_type: exponential
75 cookie_access_fixup_diff:
76 type: custom_distribution
79 If we fix up a cookie lastAccessed timestamp that is in the future this
80 metric records the number of seconds that timestamp was off from NOW.
82 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828126
84 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828126#c5
92 range_max: 315360000000
94 histogram_type: exponential
97 type: custom_distribution
99 Reports the total number of cookies in storage
103 histogram_type: exponential
106 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942
108 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942#TDB
116 cookie_count_partitioned:
117 type: custom_distribution
119 Reports the number of partitioned cookies in storage
123 histogram_type: exponential
126 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942
128 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942#TDB
136 cookie_count_unpartitioned:
137 type: custom_distribution
139 Reports the number of unpartitioned cookies in storage
143 histogram_type: exponential
146 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942
148 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942#TDB
156 cookie_count_part_by_key:
157 type: custom_distribution
159 A distribution of the partitioned cookies in storage belonging to
160 a particular cookie key (host + origin attributes)
164 histogram_type: exponential
167 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942
169 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942#TDB
177 cookie_count_unpart_by_key:
178 type: custom_distribution
180 A distribution of the unpartitioned cookies in storage belonging to
181 a particular cookie key (host + origin attributes)
185 histogram_type: exponential
188 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942
190 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942#TDB
199 type: custom_distribution
201 A distribution of the number of cookies purged across
202 all host + OAs as a result of exceeding the cookie maximum threshold
207 histogram_type: exponential
210 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942
212 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942#TDB
220 cookie_purge_entry_max:
221 type: custom_distribution
223 A distribution of the number of cookies purged for a single
224 host + OA entry as a result of exceeding the maximum threshold
225 for the given host + OA (single purge)
229 histogram_type: exponential
232 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942
234 - https://bugzilla.mozilla.org/show_bug.cgi?id=1828942#TDB
245 This counts the number of times we set a cookie. Introduced
246 as a denomenator for measuring CHIPS adoption.
248 - https://bugzilla.mozilla.org/1865199
250 - https://bugzilla.mozilla.org/show_bug.cgi?id=1865199#c3
252 - bvandersloot@mozilla.com
258 This counts the number of times we set a cookie from a foreign (not
259 same-site) context. Introduced as a denomenator for measuring CHIPS
262 - https://bugzilla.mozilla.org/1865199
264 - https://bugzilla.mozilla.org/show_bug.cgi?id=1865199#c3
266 - bvandersloot@mozilla.com
268 denominator_metric: networking.set_cookie
270 set_cookie_partitioned:
273 This counts the number of times we set a cookie that has the Partitioned
274 attribute. This tracks the adoption of CHIPS.
276 - https://bugzilla.mozilla.org/1865199
278 - https://bugzilla.mozilla.org/show_bug.cgi?id=1865199#c3
280 - bvandersloot@mozilla.com
282 denominator_metric: networking.set_cookie
284 set_cookie_foreign_partitioned:
287 This counts the number of times we set a cookie that has the Partitioned
288 attribute in a foreign (not same-site) context. This tracks the adoption
291 - https://bugzilla.mozilla.org/1865199
293 - https://bugzilla.mozilla.org/show_bug.cgi?id=1865199#c3
295 - bvandersloot@mozilla.com
297 denominator_metric: networking.set_cookie
300 type: timing_distribution
301 time_unit: millisecond
303 Time for a successful DNS resolution (msec) |
304 Migrated from Firefox Telemetry's `DNS_LOOKUP_TIME`.
306 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240
308 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240#c6
313 - acreskey@mozilla.com
315 telemetry_mirror: DNS_LOOKUP_TIME
318 type: timing_distribution
319 time_unit: millisecond
321 Time for a renewed DNS OS resolution (msec) |
322 Migrated from Firefox Telemetry's `DNS_RENEWAL_TIME`.
324 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240
326 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240#c6
331 - acreskey@mozilla.com
333 telemetry_mirror: DNS_RENEWAL_TIME
335 dns_renewal_time_for_ttl:
336 type: timing_distribution
337 time_unit: millisecond
339 Time for a DNS OS resolution (msec) used to get TTL |
340 Migrated from Firefox Telemetry's `DNS_RENEWAL_TIME_FOR_TTL`.
342 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240
344 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240#c6
349 - acreskey@mozilla.com
351 telemetry_mirror: DNS_RENEWAL_TIME_FOR_TTL
353 dns_failed_lookup_time:
354 type: timing_distribution
355 time_unit: millisecond
357 Time for an unsuccessful DNS OS resolution (msec) |
358 Migrated from Firefox Telemetry's `DNS_FAILED_LOOKUP_TIME`.
360 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240
362 - https://bugzilla.mozilla.org/show_bug.cgi?id=1838240#c6
367 - acreskey@mozilla.com
369 telemetry_mirror: DNS_FAILED_LOOKUP_TIME
372 type: labeled_counter
374 The count of calls to the native DNS APIs
376 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879165
378 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879165
391 http_content_onstart_delay:
392 type: timing_distribution
393 time_unit: millisecond
395 The time between dispatching OnStartRequest from the socket thread and processing it on the main thread (content process).
397 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
399 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926#c
407 http_content_onstop_delay:
408 type: timing_distribution
409 time_unit: millisecond
411 The time between dispatching OnStopRequest from the socket thread and processing it on the main thread (content process).
413 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
415 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926#c
423 http_content_ondatafinished_delay:
424 type: timing_distribution
425 time_unit: millisecond
427 The time between dispatching OnDataFinished from the socket thread and processing it.
429 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857615
431 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857615#c
439 http_content_ondatafinished_to_onstop_delay:
440 type: timing_distribution
441 time_unit: millisecond
443 The time between processing OnDataFinished and processing OnStopRequest (if OnDataFinished comes first)
445 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857615
447 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857615#c
455 http_content_ondatafinished_to_onstop_delay_negative:
456 type: timing_distribution
457 time_unit: millisecond
459 The time between processing OnStopRequest and processing OnDataFinished (if OnStopRequest comes first)
461 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857615
463 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857615#c
471 http_content_html5parser_ondatafinished_to_onstop_delay:
472 type: timing_distribution
473 time_unit: millisecond
475 The time between processing OnDataFinished and processing OnStopRequest (if OnDataFinished comes first)
477 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
479 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
487 http_content_html5parser_ondatafinished_to_onstop_delay_negative:
488 type: timing_distribution
489 time_unit: millisecond
491 The time between processing OnStopRequest and processing OnDataFinished (if OnStopRequest comes first)
493 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
495 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
503 http_content_cssloader_ondatafinished_to_onstop_delay:
504 type: timing_distribution
505 time_unit: millisecond
507 The time between processing OnDataFinished and processing OnStopRequest for CSSLoader in the content process
509 - https://bugzilla.mozilla.org/show_bug.cgi?id=1883391
511 - https://bugzilla.mozilla.org/show_bug.cgi?id=1883391
518 http_1_download_throughput:
519 type: custom_distribution
524 histogram_type: exponential
526 The download throughput for http/1.0, http/1.1 requests larger than 10MB. Measured in megabits per second, Mbps.
528 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
530 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
535 - acreskey@mozilla.com
537 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_1
539 http_2_download_throughput:
540 type: custom_distribution
545 histogram_type: exponential
547 The download throughput for http/2 requests larger than 10MB. Measured in megabits per second, Mbps.
549 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
551 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
556 - acreskey@mozilla.com
558 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_2
560 http_3_download_throughput:
561 type: custom_distribution
566 histogram_type: exponential
568 The download throughput for http/3 requests larger than 10MB. Measured in megabits per second, Mbps.
570 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
572 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
577 - acreskey@mozilla.com
579 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_3
581 http_1_upload_throughput:
582 type: custom_distribution
587 histogram_type: exponential
589 The upload throughput for http/1.0, http/1.1 requests larger than 10MB. Measured in megabits per second, Mbps.
591 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
593 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
598 - acreskey@mozilla.com
600 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1
602 http_2_upload_throughput:
603 type: custom_distribution
608 histogram_type: exponential
610 The upload throughput for http/2 requests larger than 10MB. Measured in megabits per second, Mbps.
612 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
614 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
619 - acreskey@mozilla.com
621 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2
623 http_3_upload_throughput:
624 type: custom_distribution
629 histogram_type: exponential
631 The upload throughput for http/3 requests larger than 10MB. Measured in megabits per second, Mbps.
633 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
635 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
640 - acreskey@mozilla.com
642 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3
644 http_1_upload_throughput_10_50:
645 type: custom_distribution
650 histogram_type: exponential
652 The upload throughput for http/1.0, http/1.1 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
654 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
656 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
661 - kershaw@mozilla.com
663 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_10_50
665 http_1_upload_throughput_50_100:
666 type: custom_distribution
671 histogram_type: exponential
673 The upload throughput for http/1.0, http/1.1 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
675 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
677 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
682 - kershaw@mozilla.com
684 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_50_100
686 http_1_upload_throughput_100:
687 type: custom_distribution
692 histogram_type: exponential
694 The upload throughput for http/1.0, http/1.1 request size larger than 100MB. Measured in megabits per second, Mbps.
696 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
698 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
703 - kershaw@mozilla.com
705 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_100
707 http_2_upload_throughput_10_50:
708 type: custom_distribution
713 histogram_type: exponential
715 The upload throughput for http/2 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
717 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
719 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
724 - kershaw@mozilla.com
726 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_10_50
728 http_2_upload_throughput_50_100:
729 type: custom_distribution
734 histogram_type: exponential
736 The upload throughput for http/2 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
738 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
740 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
745 - kershaw@mozilla.com
747 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_50_100
749 http_2_upload_throughput_100:
750 type: custom_distribution
755 histogram_type: exponential
757 The upload throughput for http/2 request size larger than 100MB. Measured in megabits per second, Mbps.
759 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
761 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
766 - kershaw@mozilla.com
768 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_100
770 http_3_upload_throughput_10_50:
771 type: custom_distribution
776 histogram_type: exponential
778 The upload throughput for http/3 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
780 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
782 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
787 - kershaw@mozilla.com
789 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_10_50
791 http_3_upload_throughput_50_100:
792 type: custom_distribution
797 histogram_type: exponential
799 The upload throughput for http/3 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
801 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
803 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
808 - kershaw@mozilla.com
810 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_50_100
812 http_3_upload_throughput_100:
813 type: custom_distribution
818 histogram_type: exponential
820 The upload throughput for http/3 request size larger than 100MB. Measured in megabits per second, Mbps.
822 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
824 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
829 - kershaw@mozilla.com
831 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_100
833 residual_cache_folder_count:
836 Counts how often we find a cache folder that wasn't purged
837 at shutdown by a background task process.
839 - https://bugzilla.mozilla.org/1848542
841 - https://bugzilla.mozilla.org/show_bug.cgi?id=1848542
846 residual_cache_folder_removal:
847 type: labeled_counter
849 Counts how often succeed/fail in removing cache folder
850 that wasn't purged at shutdown
852 - https://bugzilla.mozilla.org/1848542
854 - https://bugzilla.mozilla.org/show_bug.cgi?id=1848542
863 type: labeled_counter
865 The count of successful TRR requests keyed by regular/private browsing
867 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866245
869 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866245
878 http_response_version:
879 type: labeled_counter
881 HTTP protocol version used on response from nsHttp.h
883 - https://bugzilla.mozilla.org/show_bug.cgi?id=1876776
885 - https://bugzilla.mozilla.org/show_bug.cgi?id=1876776#c2
896 type: labeled_counter
898 HTTPS RR is presented or not
900 - https://bugzilla.mozilla.org/1686421
902 - https://bugzilla.mozilla.org/show_bug.cgi?id=1686421
905 - kershaw@mozilla.com
909 - presented_with_http3
912 https_upgrade_with_https_rr:
913 type: labeled_counter
915 Whether an HTTP request gets upgraded to HTTPS because of HTTPS RR
917 - https://bugzilla.mozilla.org/1686421
919 - https://bugzilla.mozilla.org/show_bug.cgi?id=1686421
922 - kershaw@mozilla.com
928 http_channel_onstart_success_https_rr:
929 type: labeled_counter
931 Successfully started HTTP channels when HTTPS RR is used
933 - https://bugzilla.mozilla.org/1682552
935 - https://bugzilla.mozilla.org/show_bug.cgi?id=1682552
938 - kershaw@mozilla.com
946 http_channel_page_open_to_first_sent:
947 type: timing_distribution
948 time_unit: millisecond
950 Time in milliseconds from AsyncOpen to first byte of request sent,
951 applicable for page loads without HTTPS RR
953 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
955 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
960 - kershaw@mozilla.com
963 http_channel_sub_open_to_first_sent:
964 type: timing_distribution
965 time_unit: millisecond
967 Time in milliseconds from AsyncOpen to first byte of request sent,
968 applicable for sub-resource loads without HTTPS RR
970 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
972 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
977 - kershaw@mozilla.com
980 http_channel_page_open_to_first_sent_https_rr:
981 type: timing_distribution
982 time_unit: millisecond
984 Time in milliseconds from AsyncOpen to first byte of request sent,
985 applicable for page loads with HTTPS RR
987 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
989 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
994 - kershaw@mozilla.com
997 http_channel_sub_open_to_first_sent_https_rr:
998 type: timing_distribution
999 time_unit: millisecond
1001 Time in milliseconds from AsyncOpen to first byte of request sent,
1002 applicable for sub-resource loads with HTTPS RR
1004 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1006 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1009 notification_emails:
1011 - kershaw@mozilla.com
1014 transaction_wait_time_https_rr:
1015 type: timing_distribution
1016 time_unit: millisecond
1018 Time from submission to dispatch of transaction when HTTPS RR is used (ms)
1020 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1022 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1025 notification_emails:
1027 - kershaw@mozilla.com
1031 type: labeled_counter
1033 The proxies configurations created in the browser session (SOCKSv4, SOCKSv5, HTTP, HTTPS)
1035 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879848
1037 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879848
1040 notification_emails:
1042 - manuel@mozilla.com
1049 # SOCKS4a Proxy. Proxy resolves URL hostname
1053 # SOCKS5 Proxy. Proxy resolves URL hostname
1054 # Use convention from curl for socks5 proxies that resolve the hostname
1055 # https://curl.se/libcurl/c/CURLOPT_PROXY.html
1061 transaction_wait_time:
1062 type: timing_distribution
1063 time_unit: millisecond
1065 Time from submission to dispatch of transaction without HTTPS RR (ms)
1067 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1069 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1072 notification_emails:
1074 - kershaw@mozilla.com