metrics.yaml (3994B)
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 :: Storage: localStorage & sessionStorage' 12 13 localstorage.request: 14 prepare_datastore_processing_time: 15 type: timing_distribution 16 time_unit: microsecond 17 description: > 18 Measures the time taken by the parent process to prepare a datastore. 19 This duration can be significantly affected by datastore preloading, 20 which is triggered when a page begins to load. When a datastore is 21 already preloaded, preparation is usually fast since no additional I/O 22 is required. If an error occurs, the time is not recorded. 23 In the future, we may introduce separate metrics to distinguish between 24 different types of datastore preparations (e.g., loading data from disk 25 vs. using preloaded data). 26 bugs: 27 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 28 data_reviews: 29 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 30 data_sensitivity: 31 - technical 32 notification_emails: 33 - jan.varga@gmail.com 34 - storage-telemetry@mozilla.com 35 expires: never 36 send_cancel_counter: 37 type: counter 38 description: > 39 Increments whenever a request cancellation message is successfully sent. 40 This includes cancellations for requests related to either databases or 41 observers. 42 bugs: 43 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 44 data_reviews: 45 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 46 data_sensitivity: 47 - technical 48 notification_emails: 49 - jan.varga@gmail.com 50 - storage-telemetry@mozilla.com 51 expires: never 52 recv_cancel_counter: 53 type: counter 54 description: > 55 Increments whenever a request cancellation message is successfully 56 received. This includes cancellations for requests related to either 57 databases or observers. 58 bugs: 59 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 60 data_reviews: 61 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 62 data_sensitivity: 63 - technical 64 notification_emails: 65 - jan.varga@gmail.com 66 - storage-telemetry@mozilla.com 67 expires: never 68 localstorage.database: 69 new_object_setup_time: 70 type: timing_distribution 71 time_unit: microsecond 72 description: > 73 Measures the time taken for the content process to fully set up a new 74 database, including any time required for datastore preparation in the 75 parent process. This duration can be significantly affected by datastore 76 preloading, which is triggered when a page begins loading. If an error 77 occurs, the time is not recorded. 78 bugs: 79 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 80 data_reviews: 81 - https://bugzilla.mozilla.org/show_bug.cgi?id=1590635 82 data_sensitivity: 83 - technical 84 notification_emails: 85 - jan.varga@gmail.com 86 - storage-telemetry@mozilla.com 87 expires: never 88 request_allow_to_close_response_time: 89 type: timing_distribution 90 time_unit: microsecond 91 description: > 92 Time it took between sending PBackgroundLSDatabase::RequestAllowToClose 93 and receiving PBackgroundLSDatabase::AllowToClose message. These messages 94 are issued when QuotaManager is shutting down or is aborting operations 95 for a particular origin or process. 96 bugs: 97 - https://bugzilla.mozilla.org/show_bug.cgi?id=1925205 98 data_reviews: 99 - https://bugzilla.mozilla.org/show_bug.cgi?id=1925205 100 data_sensitivity: 101 - technical 102 notification_emails: 103 - jan.varga@gmail.com 104 - storage-telemetry@mozilla.com 105 expires: never