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_1_download_throughput:
504 type: custom_distribution
509 histogram_type: exponential
511 The download throughput for http/1.0, http/1.1 requests larger than 10MB. Measured in megabits per second, Mbps.
513 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
515 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
520 - acreskey@mozilla.com
522 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_1
524 http_2_download_throughput:
525 type: custom_distribution
530 histogram_type: exponential
532 The download throughput for http/2 requests larger than 10MB. Measured in megabits per second, Mbps.
534 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
536 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
541 - acreskey@mozilla.com
543 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_2
545 http_3_download_throughput:
546 type: custom_distribution
551 histogram_type: exponential
553 The download throughput for http/3 requests larger than 10MB. Measured in megabits per second, Mbps.
555 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798
557 - https://bugzilla.mozilla.org/show_bug.cgi?id=1846798#c2
562 - acreskey@mozilla.com
564 telemetry_mirror: NETWORKING_DOWNLOAD_THROUGHPUT_HTTP_3
566 http_1_upload_throughput:
567 type: custom_distribution
572 histogram_type: exponential
574 The upload throughput for http/1.0, http/1.1 requests larger than 10MB. Measured in megabits per second, Mbps.
576 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
578 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
583 - acreskey@mozilla.com
585 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1
587 http_2_upload_throughput:
588 type: custom_distribution
593 histogram_type: exponential
595 The upload throughput for http/2 requests larger than 10MB. Measured in megabits per second, Mbps.
597 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
599 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
604 - acreskey@mozilla.com
606 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2
608 http_3_upload_throughput:
609 type: custom_distribution
614 histogram_type: exponential
616 The upload throughput for http/3 requests larger than 10MB. Measured in megabits per second, Mbps.
618 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256
620 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
625 - acreskey@mozilla.com
627 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3
629 http_1_upload_throughput_10_50:
630 type: custom_distribution
635 histogram_type: exponential
637 The upload throughput for http/1.0, http/1.1 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
639 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
641 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
646 - kershaw@mozilla.com
648 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_10_50
650 http_1_upload_throughput_50_100:
651 type: custom_distribution
656 histogram_type: exponential
658 The upload throughput for http/1.0, http/1.1 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
660 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
662 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
667 - kershaw@mozilla.com
669 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_50_100
671 http_1_upload_throughput_100:
672 type: custom_distribution
677 histogram_type: exponential
679 The upload throughput for http/1.0, http/1.1 request size larger than 100MB. Measured in megabits per second, Mbps.
681 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
683 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
688 - kershaw@mozilla.com
690 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_1_100
692 http_2_upload_throughput_10_50:
693 type: custom_distribution
698 histogram_type: exponential
700 The upload throughput for http/2 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
702 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
704 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
709 - kershaw@mozilla.com
711 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_10_50
713 http_2_upload_throughput_50_100:
714 type: custom_distribution
719 histogram_type: exponential
721 The upload throughput for http/2 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
723 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
725 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
730 - kershaw@mozilla.com
732 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_50_100
734 http_2_upload_throughput_100:
735 type: custom_distribution
740 histogram_type: exponential
742 The upload throughput for http/2 request size larger than 100MB. Measured in megabits per second, Mbps.
744 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
746 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
751 - kershaw@mozilla.com
753 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_2_100
755 http_3_upload_throughput_10_50:
756 type: custom_distribution
761 histogram_type: exponential
763 The upload throughput for http/3 request size between 10MB and 50MB. Measured in megabits per second, Mbps.
765 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
767 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
772 - kershaw@mozilla.com
774 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_10_50
776 http_3_upload_throughput_50_100:
777 type: custom_distribution
782 histogram_type: exponential
784 The upload throughput for http/3 request size between 50MB and 100MB. Measured in megabits per second, Mbps.
786 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
788 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
793 - kershaw@mozilla.com
795 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_50_100
797 http_3_upload_throughput_100:
798 type: custom_distribution
803 histogram_type: exponential
805 The upload throughput for http/3 request size larger than 100MB. Measured in megabits per second, Mbps.
807 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866739
809 - https://bugzilla.mozilla.org/show_bug.cgi?id=1858256#c2
814 - kershaw@mozilla.com
816 telemetry_mirror: HTTP_UPLOAD_THROUGHPUT_MBPS_HTTP_3_100
818 residual_cache_folder_count:
821 Counts how often we find a cache folder that wasn't purged
822 at shutdown by a background task process.
824 - https://bugzilla.mozilla.org/1848542
826 - https://bugzilla.mozilla.org/show_bug.cgi?id=1848542
831 residual_cache_folder_removal:
832 type: labeled_counter
834 Counts how often succeed/fail in removing cache folder
835 that wasn't purged at shutdown
837 - https://bugzilla.mozilla.org/1848542
839 - https://bugzilla.mozilla.org/show_bug.cgi?id=1848542
848 type: labeled_counter
850 The count of successful TRR requests keyed by regular/private browsing
852 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866245
854 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866245
863 http_response_version:
864 type: labeled_counter
866 HTTP protocol version used on response from nsHttp.h
868 - https://bugzilla.mozilla.org/show_bug.cgi?id=1876776
870 - https://bugzilla.mozilla.org/show_bug.cgi?id=1876776#c2
881 type: labeled_counter
883 HTTPS RR is presented or not
885 - https://bugzilla.mozilla.org/1686421
887 - https://bugzilla.mozilla.org/show_bug.cgi?id=1686421
890 - kershaw@mozilla.com
894 - presented_with_http3
897 https_upgrade_with_https_rr:
898 type: labeled_counter
900 Whether an HTTP request gets upgraded to HTTPS because of HTTPS RR
902 - https://bugzilla.mozilla.org/1686421
904 - https://bugzilla.mozilla.org/show_bug.cgi?id=1686421
907 - kershaw@mozilla.com
913 http_channel_onstart_success_https_rr:
914 type: labeled_counter
916 Successfully started HTTP channels when HTTPS RR is used
918 - https://bugzilla.mozilla.org/1682552
920 - https://bugzilla.mozilla.org/show_bug.cgi?id=1682552
923 - kershaw@mozilla.com
931 http_channel_page_open_to_first_sent:
932 type: timing_distribution
933 time_unit: millisecond
935 Time in milliseconds from AsyncOpen to first byte of request sent,
936 applicable for page loads without HTTPS RR
938 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
940 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
945 - kershaw@mozilla.com
948 http_channel_sub_open_to_first_sent:
949 type: timing_distribution
950 time_unit: millisecond
952 Time in milliseconds from AsyncOpen to first byte of request sent,
953 applicable for sub-resource loads without HTTPS RR
955 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
957 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
962 - kershaw@mozilla.com
965 http_channel_page_open_to_first_sent_https_rr:
966 type: timing_distribution
967 time_unit: millisecond
969 Time in milliseconds from AsyncOpen to first byte of request sent,
970 applicable for page loads with HTTPS RR
972 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
974 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
979 - kershaw@mozilla.com
982 http_channel_sub_open_to_first_sent_https_rr:
983 type: timing_distribution
984 time_unit: millisecond
986 Time in milliseconds from AsyncOpen to first byte of request sent,
987 applicable for sub-resource loads with HTTPS RR
989 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
991 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
996 - kershaw@mozilla.com
999 transaction_wait_time_https_rr:
1000 type: timing_distribution
1001 time_unit: millisecond
1003 Time from submission to dispatch of transaction when HTTPS RR is used (ms)
1005 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1007 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1010 notification_emails:
1012 - kershaw@mozilla.com
1016 type: labeled_counter
1018 The proxies configurations created in the browser session (SOCKSv4, SOCKSv5, HTTP, HTTPS)
1020 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879848
1022 - https://bugzilla.mozilla.org/show_bug.cgi?id=1879848
1025 notification_emails:
1027 - manuel@mozilla.com
1034 # SOCKS4a Proxy. Proxy resolves URL hostname
1038 # SOCKS5 Proxy. Proxy resolves URL hostname
1039 # Use convention from curl for socks5 proxies that resolve the hostname
1040 # https://curl.se/libcurl/c/CURLOPT_PROXY.html
1046 transaction_wait_time:
1047 type: timing_distribution
1048 time_unit: millisecond
1050 Time from submission to dispatch of transaction without HTTPS RR (ms)
1052 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1054 - https://bugzilla.mozilla.org/show_bug.cgi?id=1697480
1057 notification_emails:
1059 - kershaw@mozilla.com