fune/toolkit/components/glean/metrics_index.py
William Lachance af8f04a00d Bug 1746941 - Add tags to all Firefox-on-Glean metrics r=janerik
Based on our experience with Firefox for Android, annotating Glean metrics
with issue tracker component information can provide valuable context to
anyone searching for metrics.

This adds a new set of tags corresponding to the components in the
tree, annotates the existing Glean metrics. Finally, it also adds a new
mach command called `update-glean-tags` to update the tags files based
on build metadata.

Differential Revision: https://phabricator.services.mozilla.com/D134332
2022-01-14 18:11:08 +00:00

39 lines
1.6 KiB
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/.
# ATTENTION: If you make changes to this file you will need to file a bug in
# Data Platform and Tools :: General asking for the changes to be reflected
# in the data pipeline. Otherwise bad things will happen to good people:
# any new metrics files' metrics will not get columns in any datasets.
# 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/tests/test_metrics.yaml",
"toolkit/mozapps/update/metrics.yaml",
"browser/base/content/metrics.yaml",
"gfx/metrics.yaml",
"toolkit/components/processtools/metrics.yaml",
"toolkit/xre/metrics.yaml",
"browser/modules/metrics.yaml",
"browser/components/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/tests/test_pings.yaml",
"toolkit/mozapps/update/pings.yaml",
]
# The list of tags that are allowed in the above to files, and their
# descriptions. Currently we restrict to a set scraped from bugzilla
# (via `./mach update-glean-tags`)
tags_yamls = [
"toolkit/components/glean/tags.yaml",
]