Skip to content

Commit

Permalink
Add definitions of SDK metrics for server-side Glean (#695)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan-Erik Rediger <jrediger@mozilla.com>
  • Loading branch information
akkomar and badboy authored May 3, 2024
1 parent a3ffa37 commit 6fe8a8f
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions server_telemetry/sdk-metrics-compat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# 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/.

# This file defines metrics that are recorded by the Glean SDK
# but are not sent with the server-side Glean pings. They were
# deployed erroneously to some BQ tables in the past, and are now
# included for compatibility reasons. They are not used in new
# server-side code.

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

glean.client.annotation:
experimentation_id:
type: string
lifetime: application
send_in_pings:
- all-pings
description: |
An experimentation identifier derived and provided by the application
for the purpose of experimentation enrollment.
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1848201
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1848201#c5
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never

glean.error:
invalid_value:
type: labeled_counter
description: |
Counts the number of times a metric was set to an invalid value.
The labels are the `category.name` identifier of the metric.
bugs:
- https://bugzilla.mozilla.org/1499761
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1499761#c5
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- all-pings
no_lint:
- COMMON_PREFIX

invalid_label:
type: labeled_counter
description: |
Counts the number of times a metric was set with an invalid label.
The labels are the `category.name` identifier of the metric.
bugs:
- https://bugzilla.mozilla.org/1499761
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1499761#c5
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- all-pings
no_lint:
- COMMON_PREFIX

invalid_state:
type: labeled_counter
description: |
Counts the number of times a timing metric was used incorrectly.
The labels are the `category.name` identifier of the metric.
bugs:
- https://bugzilla.mozilla.org/1566380
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1499761#c5
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- all-pings
no_lint:
- COMMON_PREFIX

invalid_overflow:
type: labeled_counter
description: |
Counts the number of times a metric was set a value that overflowed.
The labels are the `category.name` identifier of the metric.
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1591912
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1591912#c3
data_sensitivity:
- technical
notification_emails:
- glean-team@mozilla.com
expires: never
send_in_pings:
- all-pings
no_lint:
- COMMON_PREFIX
File renamed without changes.

0 comments on commit 6fe8a8f

Please sign in to comment.