commit 9012dc1ded6e7743b79456c55b384145999acca3
parent 6f37bd4d4cd9fcdb6ae4b9fb831a47d82bbb5298
Author: Erik Nordin <enordin@mozilla.com>
Date: Mon, 1 Dec 2025 22:17:36 +0000
Bug 2002049 - Adjust TranslationsTelemetry rate limits r=translations-reviewers,gregtatum
This patch adjusts the rate limits for the TranslationsTelemetry
to include the aurora channel, as well as adjusts the rates slightly.
Differential Revision: https://phabricator.services.mozilla.com/D273872
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/toolkit/components/translations/TranslationsTelemetry.sys.mjs b/toolkit/components/translations/TranslationsTelemetry.sys.mjs
@@ -16,7 +16,7 @@ const lazy = /** @type {any} */ ({});
/**
* @typedef {{ flowId: string, randomRoll: number }} FlowContext
- * @typedef {"default" | "nightly" | "beta" | "esr" | "release" | "unofficial"} UpdateChannel
+ * @typedef {"default" | "nightly" | "beta" | "aurora" | "esr" | "release" | "unofficial"} UpdateChannel
* @typedef {Partial<Record<UpdateChannel, number>> & { applyInAutomation?: boolean }} SampleRates
*/
@@ -56,6 +56,7 @@ export class TranslationsTelemetry {
static #PAGE_LOAD_RATE_LIMITS = {
nightly: 1 / 1_000,
beta: 1 / 10_000,
+ aurora: 1 / 10_000,
esr: 1 / 10_000,
release: 1 / 100_000,
};
@@ -70,6 +71,7 @@ export class TranslationsTelemetry {
// prettier-ignore
static #ENGINE_PERFORMANCE_RATE_LIMITS = {
beta: 1 / 100,
+ aurora: 1 / 100,
esr: 1 / 100,
release: 1 / 1_000,
};
@@ -445,7 +447,11 @@ class FullPageTranslationsPanelTelemetry {
*/
// prettier-ignore
static #FULL_PAGE_PANEL_RATE_LIMITS = {
- release: 1 / 100,
+ nightly: 1 / 10,
+ beta: 1 / 50,
+ aurora: 1 / 50,
+ esr: 1 / 100,
+ release: 1 / 1_000,
};
/**