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
371 dns_native_https_call_time:
372 type: timing_distribution
373 time_unit: millisecond
375 Time spent in the call to the native OS DNS resolution.
377 - https://bugzilla.mozilla.org/show_bug.cgi?id=1885529
379 - https://bugzilla.mozilla.org/show_bug.cgi?id=1885529
388 type: labeled_counter
390 The count of calls to the native DNS APIs
392 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879165
394 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879165
407 http_content_onstart_delay:
408 type: timing_distribution
409 time_unit: millisecond
411 The time between dispatching OnStartRequest 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_onstop_delay:
424 type: timing_distribution
425 time_unit: millisecond
427 The time between dispatching OnStopRequest from the socket thread and processing it on the main thread (content process).
429 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926
431 - https://bugzilla.mozilla.org/show_bug.cgi?id=1857926#c
439 http_content_ondatafinished_delay:
440 type: timing_distribution
441 time_unit: millisecond
443 The time between dispatching OnDataFinished from the socket thread and processing it.
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:
456 type: timing_distribution
457 time_unit: millisecond
459 The time between processing OnDataFinished and processing OnStopRequest (if OnDataFinished 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_cssloader_ondatafinished_to_onstop_delay:
488 type: timing_distribution
489 time_unit: millisecond
491 The time between processing OnDataFinished and processing OnStopRequest for CSSLoader in the content process
493 - https://bugzilla.mozilla.org/show_bug.cgi?id=1883391
495 - https://bugzilla.mozilla.org/show_bug.cgi?id=1883391
502 http_1_download_throughput:
503 type: custom_distribution
508 histogram_type: exponential
510 The download throughput for http/1.0, http/1.1 requests larger than 10MB. Measured in megabits per second, Mbps.
512 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
514 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
519 - acreskey@mozilla.com
521 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_1
523 http_2_download_throughput:
524 type: custom_distribution
529 histogram_type: exponential
531 The download throughput for http/2 requests larger than 10MB. Measured in megabits per second, Mbps.
533 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
535 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
540 - acreskey@mozilla.com
542 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_2
544 http_3_download_throughput:
545 type: custom_distribution
550 histogram_type: exponential
552 The download throughput for http/3 requests larger than 10MB. Measured in megabits per second, Mbps.
554 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
556 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
561 - acreskey@mozilla.com
563 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_3
565 http_1_upload_throughput:
566 type: custom_distribution
571 histogram_type: exponential
573 The upload throughput for http/1.0, http/1.1 requests larger than 10MB. Measured in megabits per second, Mbps.
575 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
577 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
582 - acreskey@mozilla.com
584 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1
586 http_2_upload_throughput:
587 type: custom_distribution
592 histogram_type: exponential
594 The upload throughput for http/2 requests larger than 10MB. Measured in megabits per second, Mbps.
596 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
598 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
603 - acreskey@mozilla.com
605 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2
607 http_3_upload_throughput:
608 type: custom_distribution
613 histogram_type: exponential
615 The upload throughput for http/3 requests larger than 10MB. Measured in megabits per second, Mbps.
617 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
619 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
624 - acreskey@mozilla.com
626 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3
628 http_1_upload_throughput_10_50:
629 type: custom_distribution
634 histogram_type: exponential
636 The upload throughput for http/1.0, http/1.1 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
638 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
640 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
645 - kershaw@mozilla.com
647 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_10_50
649 http_1_upload_throughput_50_100:
650 type: custom_distribution
655 histogram_type: exponential
657 The upload throughput for http/1.0, http/1.1 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
659 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
661 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
666 - kershaw@mozilla.com
668 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_50_100
670 http_1_upload_throughput_100:
671 type: custom_distribution
676 histogram_type: exponential
678 The upload throughput for http/1.0, http/1.1 request size larger than 100MB. Measured in megabits per second, Mbps.
680 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
682 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
687 - kershaw@mozilla.com
689 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_100
691 http_2_upload_throughput_10_50:
692 type: custom_distribution
697 histogram_type: exponential
699 The upload throughput for http/2 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
701 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
703 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
708 - kershaw@mozilla.com
710 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_10_50
712 http_2_upload_throughput_50_100:
713 type: custom_distribution
718 histogram_type: exponential
720 The upload throughput for http/2 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
722 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
724 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
729 - kershaw@mozilla.com
731 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_50_100
733 http_2_upload_throughput_100:
734 type: custom_distribution
739 histogram_type: exponential
741 The upload throughput for http/2 request size larger than 100MB. Measured in megabits per second, Mbps.
743 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
745 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
750 - kershaw@mozilla.com
752 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_100
754 http_3_upload_throughput_10_50:
755 type: custom_distribution
760 histogram_type: exponential
762 The upload throughput for http/3 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
764 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
766 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
771 - kershaw@mozilla.com
773 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_10_50
775 http_3_upload_throughput_50_100:
776 type: custom_distribution
781 histogram_type: exponential
783 The upload throughput for http/3 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
785 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
787 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
792 - kershaw@mozilla.com
794 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_50_100
796 http_3_upload_throughput_100:
797 type: custom_distribution
802 histogram_type: exponential
804 The upload throughput for http/3 request size larger than 100MB. Measured in megabits per second, Mbps.
806 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
808 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
813 - kershaw@mozilla.com
815 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_100
817 residual_cache_folder_count:
820 Counts how often we find a cache folder that wasn't purged
821 at shutdown by a background task process.
823 - https://bugzilla.mozilla.org/1848542
825 - https://bugzilla.mozilla.org/show_bug.cgi?id=1848542
830 residual_cache_folder_removal:
831 type: labeled_counter
833 Counts how often succeed/fail in removing cache folder
834 that wasn't purged at shutdown
836 - https://bugzilla.mozilla.org/1848542
838 - https://bugzilla.mozilla.org/show_bug.cgi?id=1848542
847 type: labeled_counter
849 The count of successful TRR requests keyed by regular/private browsing
851 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866245
853 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866245
862 http_response_version:
863 type: labeled_counter
865 HTTP protocol version used on response from nsHttp.h
867 - https://bugzilla.mozilla.org/show_bug.cgi?id=1876776
869 - https://bugzilla.mozilla.org/show_bug.cgi?id=1876776#c2
880 type: labeled_counter
882 HTTPS RR is presented or not
884 - https://bugzilla.mozilla.org/1686421
886 - https://bugzilla.mozilla.org/show_bug.cgi?id=1686421
889 - kershaw@mozilla.com
893 - presented_with_http3
896 https_upgrade_with_https_rr:
897 type: labeled_counter
899 Whether an HTTP request gets upgraded to HTTPS because of HTTPS RR
901 - https://bugzilla.mozilla.org/1686421
903 - https://bugzilla.mozilla.org/show_bug.cgi?id=1686421
906 - kershaw@mozilla.com
912 http_channel_onstart_success_https_rr:
913 type: labeled_counter
915 Successfully started HTTP channels when HTTPS RR is used
917 - https://bugzilla.mozilla.org/1682552
919 - https://bugzilla.mozilla.org/show_bug.cgi?id=1682552
922 - kershaw@mozilla.com
930 http_channel_page_open_to_first_sent:
931 type: timing_distribution
932 time_unit: millisecond
934 Time in milliseconds from AsyncOpen to first byte of request sent,
935 applicable for page loads without HTTPS RR
937 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
939 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
944 - kershaw@mozilla.com
947 http_channel_sub_open_to_first_sent:
948 type: timing_distribution
949 time_unit: millisecond
951 Time in milliseconds from AsyncOpen to first byte of request sent,
952 applicable for sub-resource loads without HTTPS RR
954 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
956 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
961 - kershaw@mozilla.com
964 http_channel_page_open_to_first_sent_https_rr:
965 type: timing_distribution
966 time_unit: millisecond
968 Time in milliseconds from AsyncOpen to first byte of request sent,
969 applicable for page loads with HTTPS RR
971 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
973 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
978 - kershaw@mozilla.com
981 http_channel_sub_open_to_first_sent_https_rr:
982 type: timing_distribution
983 time_unit: millisecond
985 Time in milliseconds from AsyncOpen to first byte of request sent,
986 applicable for sub-resource loads with HTTPS RR
988 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
990 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
995 - kershaw@mozilla.com
998 transaction_wait_time_https_rr:
999 type: timing_distribution
1000 time_unit: millisecond
1002 Time from submission to dispatch of transaction when HTTPS RR is used (ms)
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
1015 type: labeled_counter
1017 The proxies configurations created in the browser session (SOCKSv4, SOCKSv5, HTTP, HTTPS)
1019 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879848
1021 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879848
1024 notification_emails:
1026 - manuel@mozilla.com
1033 # SOCKS4a Proxy. Proxy resolves URL hostname
1037 # SOCKS5 Proxy. Proxy resolves URL hostname
1038 # Use convention from curl for socks5 proxies that resolve the hostname
1039 # https://curl.se/libcurl/c/CURLOPT_PROXY.html
1045 transaction_wait_time:
1046 type: timing_distribution
1047 time_unit: millisecond
1049 Time from submission to dispatch of transaction without HTTPS RR (ms)
1051 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1053 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1056 notification_emails:
1058 - kershaw@mozilla.com