From 0eaa4d1893e663b54413495d1af09394d8e549de Mon Sep 17 00:00:00 2001 From: "Roberto A. Vitillo" Date: Mon, 28 Jul 2014 09:53:00 +0200 Subject: [PATCH] Bug 1037494 - Add author field to Histograms.json; r=vladan --- toolkit/components/telemetry/Histograms.json | 3 +++ toolkit/components/telemetry/histogram_tools.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/toolkit/components/telemetry/Histograms.json b/toolkit/components/telemetry/Histograms.json index 6c07c7107be..049a77064cd 100644 --- a/toolkit/components/telemetry/Histograms.json +++ b/toolkit/components/telemetry/Histograms.json @@ -71,6 +71,7 @@ "description": "Maximum number of concurrent threads reached during a given download session" }, "BLOCKLIST_SYNC_FILE_LOAD": { + "alert_emails": ["rvitillo@mozilla.com"], "expires_in_version": "35", "kind": "boolean", "description": "blocklist.xml has been loaded synchronously" @@ -4183,6 +4184,7 @@ "description": "Number of histograms with total count low errors" }, "TELEMETRY_FILES_EVICTED": { + "alert_emails": ["rvitillo@mozilla.com"], "expires_in_version": "36", "kind": "enumerated", "n_values": 30, @@ -4506,6 +4508,7 @@ "description": "Time (ms) it takes to initialize the search service" }, "SEARCH_SERVICE_INIT_SYNC": { + "alert_emails": ["rvitillo@mozilla.com"], "expires_in_version": "35", "kind": "boolean", "description": "search service has been initialized synchronously" diff --git a/toolkit/components/telemetry/histogram_tools.py b/toolkit/components/telemetry/histogram_tools.py index e66a733b229..9e07134487d 100644 --- a/toolkit/components/telemetry/histogram_tools.py +++ b/toolkit/components/telemetry/histogram_tools.py @@ -55,7 +55,7 @@ def exponential_buckets(dmin, dmax, n_buckets): ret_array[bucket_index] = current return ret_array -always_allowed_keys = ['kind', 'description', 'cpp_guard', 'expires_in_version'] +always_allowed_keys = ['kind', 'description', 'cpp_guard', 'expires_in_version', "alert_emails"] class Histogram: """A class for representing a histogram definition."""