This does a few things: 1) It registers a few basic health metrics and a new Glean custom ping. 2) It arranges to mirror the default profile's `datareporting.healthreport.uploadEnabled` preference to the temporary background task profile. This requires not setting that pref for every background task. This is not risky because the Telemetry mechanism is completely disabled in background tasks at this time. 3) It initializes Firefox-on-Glean. 4) It uses the Glean APIs to submit the Glean custom ping. Differential Revision: https://phabricator.services.mozilla.com/D111022
22 lines
860 B
Python
22 lines
860 B
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# 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/.
|
|
|
|
# The list of all Glean metrics.yaml files, relative to the top src dir.
|
|
# New additions should be added to the bottom of the list.
|
|
metrics_yamls = [
|
|
"toolkit/components/glean/metrics.yaml",
|
|
"toolkit/components/glean/test_metrics.yaml",
|
|
"toolkit/mozapps/update/metrics.yaml",
|
|
]
|
|
|
|
# The list of all Glean pings.yaml files, relative to the top src dir.
|
|
# New additions should be added to the bottom of the list.
|
|
pings_yamls = [
|
|
"toolkit/components/glean/pings.yaml",
|
|
"toolkit/components/glean/test_pings.yaml",
|
|
"toolkit/mozapps/update/pings.yaml",
|
|
]
|