summaryrefslogtreecommitdiffstats
path: root/toolkit/components/translations/metrics.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /toolkit/components/translations/metrics.yaml
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/translations/metrics.yaml')
-rw-r--r--toolkit/components/translations/metrics.yaml86
1 files changed, 86 insertions, 0 deletions
diff --git a/toolkit/components/translations/metrics.yaml b/toolkit/components/translations/metrics.yaml
new file mode 100644
index 0000000000..d20c9ea62f
--- /dev/null
+++ b/toolkit/components/translations/metrics.yaml
@@ -0,0 +1,86 @@
+# 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/.↩
+
+# Adding a new metric? We have docs for that!↩
+# https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html↩
+
+---
+$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
+$tags:
+ - 'Firefox :: Translation'
+
+translations:
+ requests_count:
+ type: counter
+ description: >
+ The count of translation requests.
+ bugs:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836436
+ data_reviews:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836436
+ data_sensitivity:
+ - technical
+ notification_emails:
+ - translations-telemetry-alerts@mozilla.com
+ expires: 122
+
+ error_rate:
+ type: rate
+ description: >
+ The rate of failed translations requests.
+ denominator_metric: translations.requests_count
+ bugs:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836436
+ data_reviews:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836436
+ data_sensitivity:
+ - technical
+ notification_emails:
+ - translations-telemetry-alerts@mozilla.com
+ expires: 122
+
+ error:
+ type: event
+ description: >
+ The specific translations error that caused a full-page translation failure.
+ extra_keys:
+ reason:
+ type: string
+ description: The reason for the error.
+ bugs:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836436
+ data_reviews:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836436
+ data_sensitivity:
+ - technical
+ notification_emails:
+ - translations-telemetry-alerts@mozilla.com
+ expires: 122
+
+ translation_request:
+ type: event
+ description: >
+ Triggers when a full-page translation request is sent.
+ extra_keys:
+ from_language:
+ type: string
+ description: The language being translated from.
+ to_language:
+ type: string
+ description: The language being translated into.
+ auto_translate:
+ type: boolean
+ description: >
+ True if this translation was triggered automatically
+ due to configured always-translate-language settings.
+ False if this translation was triggered manually.
+ bugs:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836381
+ data_reviews:
+ - https://bugzilla.mozilla.org/show_bug.cgi?id=1836381
+ data_sensitivity:
+ - interaction
+ notification_emails:
+ - translations-telemetry-alerts@mozilla.com
+ expires: 122