metrics.yaml (5094B)
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/. 4 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 7 8 --- 9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0 10 $tags: 11 - 'Core :: DOM: Navigation' 12 13 performance.page: 14 total_content_page_load: 15 type: timing_distribution 16 time_unit: millisecond 17 telemetry_mirror: TOTAL_CONTENT_PAGE_LOAD_TIME 18 description: > 19 Time to load all of a page's resources and render. 20 (Migrated from the geckoview metric of the same name.) 21 bugs: 22 - https://bugzilla.mozilla.org/show_bug.cgi?id=1580077 23 - https://bugzilla.mozilla.org/show_bug.cgi?id=1877842 24 data_reviews: 25 - https://bugzilla.mozilla.org/show_bug.cgi?id=1580077#c10 26 notification_emails: 27 - perf-telemetry-alerts@mozilla.com 28 - bdekoz@mozilla.com 29 expires: never 30 31 bfcache: 32 combo: 33 type: labeled_counter 34 description: > 35 The common combinations of BFCacheStatus when we determine whether the 36 page can be BFCached or not; If it's BFCached, we record BFCache_Success; 37 Success_Not_Toplevel represents the number of not the only top level 38 document in BrowsingContextGroup's documents that are BFCached, and 39 BFCache_Success includes Success_Not_Toplevel; If it's not and it falls 40 under common failure reasons combinations, we record the corresponding 41 combination; Otherwise, we record Other to indicate this is not a common 42 failure 43 44 This metric was generated to correspond to the Legacy Telemetry 45 categorical histogram BFCACHE_COMBO. 46 labels: 47 - BFCache_Success 48 - Success_Not_Toplevel 49 - Unload 50 - Unload_Req 51 - Req 52 - Unload_Req_Peer 53 - Unload_Req_Peer_MSE 54 - Unload_Req_MSE 55 - SPD_Unload_Req_Peer 56 - Remote_Subframes 57 - Beforeunload 58 - Other 59 bugs: 60 - https://bugzilla.mozilla.org/show_bug.cgi?id=1531917 61 data_reviews: 62 - https://bugzilla.mozilla.org/show_bug.cgi?id=1531917 63 notification_emails: 64 - sefeng@mozilla.com 65 expires: never 66 telemetry_mirror: h#BFCACHE_COMBO 67 68 page_restored: 69 type: labeled_counter 70 description: > 71 Whether bfcache is used when loading a page from session history 72 73 This metric was generated to correspond to the Legacy Telemetry boolean 74 histogram BFCACHE_PAGE_RESTORED. 75 labels: 76 - "false" 77 - "true" 78 bugs: 79 - https://bugzilla.mozilla.org/show_bug.cgi?id=1531917 80 - https://bugzilla.mozilla.org/show_bug.cgi?id=1551935 81 data_reviews: 82 - https://bugzilla.mozilla.org/show_bug.cgi?id=1531917 83 - https://bugzilla.mozilla.org/show_bug.cgi?id=1551935 84 notification_emails: 85 - sefeng@mozilla.com 86 expires: never 87 telemetry_mirror: h#BFCACHE_PAGE_RESTORED 88 89 page: 90 load_error: 91 type: dual_labeled_counter 92 description: > 93 Page load errors. Match values with type of error in 94 nsDocShellTelemetryUtils.cpp 95 96 This metric was generated to correspond to the Legacy Telemetry 97 categorical histogram PAGE_LOAD_ERROR. 98 dual_labels: 99 key: 100 description: Is the error for a subframe or a top level document? 101 PAGE_LOAD_ERROR. 102 labels: 103 - top 104 - frame 105 category: 106 labels: 107 - UNKNOWN_PROTOCOL 108 - FILE_NOT_FOUND 109 - FILE_ACCESS_DENIED 110 - UNKNOWN_HOST 111 - CONNECTION_REFUSED 112 - PROXY_BAD_GATEWAY 113 - NET_INTERRUPT 114 - NET_TIMEOUT 115 - P_GATEWAY_TIMEOUT 116 - CSP_FRAME_ANCEST 117 - CSP_FORM_ACTION 118 - CSP_NAVIGATE_TO 119 - XFO_VIOLATION 120 - PHISHING_URI 121 - MALWARE_URI 122 - UNWANTED_URI 123 - HARMFUL_URI 124 - CONTENT_CRASHED 125 - FRAME_CRASHED 126 - BUILDID_MISMATCH 127 - NET_RESET 128 - MALFORMED_URI 129 - REDIRECT_LOOP 130 - UNKNOWN_SOCKET 131 - DOCUMENT_N_CACHED 132 - OFFLINE 133 - DOC_PRINTMODE 134 - PORT_ACCESS 135 - UNKNOWN_PROXY_HOST 136 - PROXY_CONNECTION 137 - PROXY_FORBIDDEN 138 - P_NOT_IMPLEMENTED 139 - PROXY_AUTH 140 - PROXY_TOO_MANY 141 - CONTENT_ENCODING 142 - REMOTE_XUL 143 - UNSAFE_CONTENT 144 - CORRUPTED_CONTENT 145 - INTERCEPTION_FAIL 146 - INADEQUATE_SEC 147 - BLOCKED_BY_POLICY 148 - HTTP2_SENT_GOAWAY 149 - HTTP3_PROTOCOL 150 - BINDING_FAILED 151 - otherError 152 description: Labels of the keyed categorical legacy telemetry histogram 153 PAGE_LOAD_ERROR. 154 bugs: 155 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636962 156 data_reviews: 157 - https://bugzilla.mozilla.org/show_bug.cgi?id=1636962 158 notification_emails: 159 - seceng-telemetry@mozilla.com 160 expires: never 161 telemetry_mirror: PAGE_LOAD_ERROR