bug 1512503 - Instrument about:telemetry for pageloads. r=janerik, a=RyanVM
authorChris H-C <chutten@mozilla.com>
Wed, 12 Dec 2018 17:02:36 +0000
changeset 509103 6003743fd8fd999ec1334b180efd04784a47a050
parent 509102 fde04f5ec92099bf5cd7d1328f0f09e3d5ff610a
child 509104 c35977a3c5a3d1c6eb3ac66582143d7e9ef07665
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjanerik, RyanVM
bugs1512503
milestone65.0
bug 1512503 - Instrument about:telemetry for pageloads. r=janerik, a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D14266
toolkit/components/telemetry/Scalars.yaml
toolkit/content/aboutTelemetry.js
--- a/toolkit/components/telemetry/Scalars.yaml
+++ b/toolkit/components/telemetry/Scalars.yaml
@@ -1730,16 +1730,29 @@ telemetry:
     kind: uint
     keyed: true
     notification_emails:
       - chutten@mozilla.com
     release_channel_collection: opt-out
     record_in_processes:
       - 'main'
 
+  about_telemetry_pageload:
+    bug_numbers:
+      - 1512503
+    description: >
+      The number of times about:telemetry was loaded.
+    expires: "70"
+    kind: uint
+    notification_emails:
+      - chutten@mozilla.com
+    release_channel_collection: opt-out
+    record_in_processes:
+      - 'main'
+
 telemetry.discarded:
   accumulations:
     bug_numbers:
       - 1369041
     description: >
       Number of discarded accumulations to histograms in child processes
     expires: "never"
     kind: uint
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -2058,16 +2058,17 @@ function openJsonInFirefoxJsonViewer(jso
     window.open("data:application/json;base64," + btoa(json));
   } catch (e) {
     show(document.querySelector(".category[value=raw-payload-section]"));
   }
 }
 
 function onLoad() {
   window.removeEventListener("load", onLoad);
+  Telemetry.scalarAdd("telemetry.about_telemetry_pageload", 1);
 
   // Set the text in the page header
   setupPageHeader();
 
   // Set up event listeners
   setupListeners();
 
   // Render settings.