Bug 1451734 - Add basic telemetry for application panel (open count, active time);r=miker,ladybenko draft
authorJulian Descottes <jdescottes@mozilla.com>
Fri, 25 May 2018 16:10:33 +0200
changeset 804662 e566f9790eb893e13777678b99935ee3879f8da0
parent 804582 715e3f81f67c5fb9f9810fd80690b429888ae86e
child 804663 1d7fd72e1642ae764fc939d60a4b26f099785e1e
child 804664 d2ed73c53f9c64d9a297bf3d85973351bca06ba6
child 804666 da8fffdaa53381ef17654c4cd38a26b7c1e277da
push id112428
push userjdescottes@mozilla.com
push dateWed, 06 Jun 2018 11:03:11 +0000
reviewersmiker, ladybenko
bugs1451734
milestone62.0a1
Bug 1451734 - Add basic telemetry for application panel (open count, active time);r=miker,ladybenko MozReview-Commit-ID: KONx4KdDhTU
devtools/client/shared/telemetry.js
toolkit/components/telemetry/Histograms.json
toolkit/components/telemetry/Scalars.yaml
--- a/devtools/client/shared/telemetry.js
+++ b/devtools/client/shared/telemetry.js
@@ -629,16 +629,17 @@ function getChartsFromToolId(id) {
     case "TOOLBOX":
     case "WEBAUDIOEDITOR":
     case "WEBCONSOLE":
     case "WEBIDE":
       timerHist = `DEVTOOLS_${id}_TIME_ACTIVE_SECONDS`;
       countHist = `DEVTOOLS_${id}_OPENED_COUNT`;
       break;
     case "ACCESSIBILITY":
+    case "APPLICATION":
       timerHist = `DEVTOOLS_${id}_TIME_ACTIVE_SECONDS`;
       countScalar = `devtools.${lowerCaseId}.opened_count`;
       break;
     case "ACCESSIBILITY_PICKER":
       timerHist = `DEVTOOLS_${id}_TIME_ACTIVE_SECONDS`;
       countScalar = `devtools.accessibility.picker_used_count`;
       break;
     default:
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -9528,16 +9528,27 @@
     "kind": "exponential",
     "high": 86400,
     "n_buckets": 100,
     "bug_numbers": [1447302],
     "alert_emails": ["dev-developer-tools@lists.mozilla.org", "yzenevich@mozilla.com"],
     "releaseChannelCollection": "opt-out",
     "description": "How long has the platform accessibility been active (seconds) in accessibility panel."
   },
+  "DEVTOOLS_APPLICATION_TIME_ACTIVE_SECONDS": {
+    "record_in_processes": ["main", "content"],
+    "expires_in_version": "66",
+    "kind": "exponential",
+    "high": 86400,
+    "n_buckets": 100,
+    "bug_numbers": [1451734],
+    "alert_emails": ["dev-developer-tools@lists.mozilla.org", "jdescottes@mozilla.com"],
+    "releaseChannelCollection": "opt-out",
+    "description": "How long has the application panel been active (seconds)."
+  },
   "DEVTOOLS_TOOLBOX_TIME_ACTIVE_SECONDS": {
     "record_in_processes": ["main", "content"],
     "expires_in_version": "never",
     "kind": "exponential",
     "high": 10000000,
     "n_buckets": 100,
     "bug_numbers": [1446496],
     "alert_emails": ["dev-developer-tools@lists.mozilla.org", "jryans@mozilla.com"],
--- a/toolkit/components/telemetry/Scalars.yaml
+++ b/toolkit/components/telemetry/Scalars.yaml
@@ -1135,16 +1135,31 @@ devtools.accessibility:
     kind: uint
     notification_emails:
       - dev-developer-tools@lists.mozilla.org
       - yzenevich@mozilla.com
     release_channel_collection: opt-out
     record_in_processes:
       - 'main'
 
+devtools.application:
+  opened_count:
+    bug_numbers:
+      - 1451734
+    description: >
+      Number of times the DevTools Application panel has been opened.
+    expires: "66"
+    kind: uint
+    notification_emails:
+      - dev-developer-tools@lists.mozilla.org
+      - jdescottes@mozilla.com
+    release_channel_collection: opt-out
+    record_in_processes:
+      - 'main'
+
 devtools.toolbox:
   tabs_reordered:
     bug_numbers:
       - 1456551
     description: >
       Number of times the DevTools tab was reordered.
       Keyed by tab's id.
     expires: "65"