# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

---
$schema: moz://mozilla.org/schemas/glean/pings/2-0-0

pageload:
  description: |
    Non sensitive instrumentation collected during a page load.
  reasons:
    startup: |
      Page load ping sent during startup.
    threshold: |
      Page load ping sent when a threshold limit
      of page loads has been reached.
  include_client_id: false
  send_if_empty: false
  bugs:
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1759744
  data_reviews:
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1759744#c5
  notification_emails:
    - perf-telemetry-alerts@mozilla.com
    - dpalmeiro@mozilla.com

pageload-base-domain:
  description: |
    Page load instrumentation that includes etld+1.  Sent with ohttp.
  reasons:
    pageload: |
      Ping sent upon page load completion.
  include_client_id: false
  send_if_empty: false
  metadata:
    include_info_sections: false
  uploader_capabilities:
    - ohttp
  bugs:
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1967780
  data_reviews:
    - https://phabricator.services.mozilla.com/D250521
  notification_emails:
    - perf-telemetry-alerts@mozilla.com

use-counters:
  description: |
    Collects counts of uses of web platform features.
    See [Use Counters Documentation](https://firefox-source-docs.mozilla.org/dom/use-counters.html)
    for more information.
  reasons:
    app_shutdown_confirmed: |
      Submitted when we reach `ShutdownPhase::AppShutdownConfirmed`.
      (Any later and the network might have been torn down.)
    idle_startup: |
      (Android only)
      Submitted when the thread init'ing DOM's contentutils has an idle moment.
      Acts as a safety net for platforms (like Android) that don't get to gracefully shut down.
  include_client_id: true
  send_if_empty: false
  bugs:
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098
  data_reviews:
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1852098
  notification_emails:
    - dom-core@mozilla.com
    - chutten@mozilla.com
    - emilio@mozilla.com
