Bug 1570634 - Renew expired media telemetry; r=chutten a=RyanVM
authorDan Minor <dminor@mozilla.com>
Tue, 13 Aug 2019 13:18:59 +0000
changeset 541941 39cc6e14e6a0ad804a5e62960371e939999435d8
parent 541940 325b59be2036995d06469cda0a87a17f65b3ea0f
child 541942 e6dbfc6af27bc7be2351fe81bc29c27630f5f188
push id11786
push userarchaeopteryx@coole-files.de
push dateThu, 15 Aug 2019 09:17:18 +0000
treeherdermozilla-beta@39cc6e14e6a0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschutten, RyanVM
bugs1570634
milestone69.0
Bug 1570634 - Renew expired media telemetry; r=chutten a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D41611
toolkit/components/telemetry/Histograms.json
toolkit/components/telemetry/Scalars.yaml
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -8773,22 +8773,23 @@
     "record_in_processes": ["main", "content"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
     "expires_in_version": "63",
     "kind": "boolean",
     "description": "Reports whether a navigator.requestMediaKeySystemAccess() was called in a secure context (i.e. on an origin served over HTTPS) or not.",
     "bug_numbers": [1360438]
   },
   "MEDIA_MKV_CANPLAY_REQUESTED": {
-    "record_in_processes": ["main", "content"],
-    "alert_emails": ["ayang@mozilla.com"],
-    "expires_in_version": "65",
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
+    "alert_emails": ["bvandyk@mozilla.com"],
+    "expires_in_version": "74",
     "kind": "boolean",
     "description": "Reports a true value when a page requests canPlayType for a matroska media type.",
-    "bug_numbers": [1429986]
+    "bug_numbers": [1429986, 1570634]
   },
   "MEDIA_EME_REQUEST_DEPRECATED_WARNINGS": {
     "record_in_processes": ["main", "content"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
     "bug_numbers": [1368596],
     "expires_in_version": "63",
     "kind": "enumerated",
     "n_values": 10,
@@ -8844,20 +8845,21 @@
     "alert_emails": ["gsquelart@mozilla.com"],
     "bug_numbers": [1366936],
     "expires_in_version": "60",
     "kind": "enumerated",
     "n_values": 32,
     "description": "Maximum number of owners for each MediaCache block. Recorded at every MediaCache destruction, i.e., whenever there is no more media data to be downloaded or kept for playback."
   },
   "MEDIACACHESTREAM_LENGTH_KB": {
-    "record_in_processes": ["main", "content"],
-    "alert_emails": ["gsquelart@mozilla.com"],
-    "bug_numbers": [1369538],
-    "expires_in_version": "60",
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
+    "alert_emails": ["jya@mozilla.com"],
+    "bug_numbers": [1369538, 1570634],
+    "expires_in_version": "74",
     "kind": "linear",
     "high": 520000,
     "n_buckets": 66,
     "description": "MediaCacheStream stream length size in KB; Either known size from the HTTP header if available, or otherwise the size actually downloaded. Recorded at every MediaCacheStream destruction."
   },
   "MEDIACACHESTREAM_NOTIFIED_LENGTH": {
     "record_in_processes": ["main", "content"],
     "alert_emails": ["gsquelart@mozilla.com"],
@@ -9032,38 +9034,41 @@
     "bug_numbers": [1336182],
     "expires_in_version": "60",
     "kind": "exponential",
     "high": 10000,
     "n_buckets": 20,
     "description": "The length of time (in milliseconds) it took for a server DTLS handshake to complete, given that it failed."
   },
   "WEBRTC_DTLS_CIPHER": {
-    "record_in_processes": ["content"],
+    "record_in_processes": ["content", "socket"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["webrtc-dtls-telemetry-alerts@mozilla.com", "nohlmeier@mozilla.com"],
-    "bug_numbers": [1484024],
-    "expires_in_version": "66",
+    "bug_numbers": [1484024, 1570634],
+    "expires_in_version": "74",
     "kind": "enumerated",
     "n_values": 14,
     "description": "The DTLS cipher (as integer) negotiated for a RTCPeerConnection. See TransportLayerDtls::RecordCipherTelemetry for the meaning of the values"
   },
   "WEBRTC_SRTP_CIPHER": {
-    "record_in_processes": ["content"],
+    "record_in_processes": ["content", "socket"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["webrtc-dtls-telemetry-alerts@mozilla.com", "nohlmeier@mozilla.com"],
-    "bug_numbers": [1491511],
-    "expires_in_version": "67",
+    "bug_numbers": [1491511, 1570634],
+    "expires_in_version": "74",
     "kind": "categorical",
     "labels": ["Unknown", "Aes128CmHmacSha1_80", "Aes128CmHmacSha1_32", "AeadAes128Gcm", "AeadAes256Gcm"],
     "description": "The SRTP cipher (as label) negotiated for a RTCPeerConnection."
   },
   "WEBRTC_DTLS_PROTOCOL_VERSION": {
-    "record_in_processes": ["content"],
+    "record_in_processes": ["content", "socket"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["webrtc-dtls-telemetry-alerts@mozilla.com", "nohlmeier@mozilla.com"],
-    "bug_numbers": [1491511],
-    "expires_in_version": "68",
+    "bug_numbers": [1491511, 1570634],
+    "expires_in_version": "74",
     "kind": "categorical",
     "labels": ["Unknown", "Dtls_version_1_0", "Dtls_version_1_2", "Dtls_version_1_3"],
     "description": "The DTLS protocol version (as label) negotiated for a RTCPeerConnection."
   },
   "WEBRTC_ICE_FINAL_CONNECTION_STATE": {
     "record_in_processes": ["main", "content"],
     "alert_emails": ["webrtc-ice-telemetry-alerts@mozilla.com, nohlmeier@mozilla.com"],
     "bug_numbers": [1319268],
@@ -11919,89 +11924,96 @@
     "record_in_processes": ["main", "content"],
     "expires_in_version": "default",
     "kind": "linear",
     "high": 1024,
     "n_buckets": 16,
     "description": "The number of entries in persistent DataStorage (HSTS and HPKP data, basically)"
   },
   "VIDEO_PLAY_TIME_MS" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "never",
     "description": "Total time spent playing video in milliseconds. This reports the total play time for an HTML Media Element whenever it is suspended or resumed, such as when the page is unloaded, or when the mute status changes when the AudioChannelAPI pref is set.",
     "kind": "exponential",
     "high": 7200000,
     "n_buckets": 100,
-    "bug_numbers": [1261955, 1127646]
+    "bug_numbers": [1261955, 1127646, 1570634]
   },
   "VIDEO_HIDDEN_PLAY_TIME_MS" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "never",
     "description": "Total time spent playing video while element is hidden, in milliseconds. This reports the total hidden play time for an HTML Media Element whenever it is suspended or resumed, such as when the page is unloaded, or when the mute status changes when the AudioChannelAPI pref is set.",
     "kind": "exponential",
     "high": 7200000,
     "n_buckets": 100,
-    "bug_numbers": [1285419]
+    "bug_numbers": [1285419, 1570634]
   },
   "VIDEO_HIDDEN_PLAY_TIME_PERCENTAGE" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "never",
     "description": "Percentage of total time spent playing video while element is hidden. Keyed by audio presence and by height ranges (boundaries: 240. 480, 576, 720, 1080, 2160), e.g.: 'V,0<h<=240', 'AV,h>2160'; and 'All' will accumulate all percentages. This is reported whenever an HTML Media Element is suspended or resumed, such as when the page is unloaded.",
     "keyed": true,
     "kind": "linear",
     "high": 100,
     "n_buckets": 50,
-    "bug_numbers": [1287987]
+    "bug_numbers": [1287987, 1570634]
   },
   "VIDEO_INFERRED_DECODE_SUSPEND_PERCENTAGE" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "74",
     "description": "Percentage of total time spent *not* fully decoding video while element is hidden (simulated, even when feature is not enabled). Keyed by audio presence and by height ranges (boundaries: 240. 480, 576, 720, 1080, 2160), e.g.: 'V,0<h<=240', 'AV,h>2160'; and 'All' will accumulate all percentages. This is reported whenever an HTML Media Element is suspended or resumed, such as when the page is unloaded.",
     "keyed": true,
     "kind": "linear",
     "high": 100,
     "n_buckets": 50,
-    "bug_numbers": [1293145]
+    "bug_numbers": [1293145, 1570634]
   },
   "VIDEO_INTER_KEYFRAME_AVERAGE_MS" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "74",
     "description": "Average interval between video keyframes in played videos, in milliseconds. Keyed by audio presence and by height ranges (boundaries: 240. 480, 576, 720, 1080, 2160), e.g.: 'V,0<h<=240', 'AV,h>2160'; and 'All' will accumulate all percentages. This is reported whenever an HTML Media Element is suspended or resumed, such as when the page is unloaded.",
     "keyed": true,
     "kind": "exponential",
     "high": 60000,
     "n_buckets": 100,
-    "bug_numbers": [1289668]
+    "bug_numbers": [1289668, 1570634]
   },
   "VIDEO_INTER_KEYFRAME_MAX_MS" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "74",
     "description": "Maximum interval between video keyframes in played videos, in milliseconds; '0' means only 1 keyframe found. Keyed by audio presence and by height ranges (boundaries: 240. 480, 576, 720, 1080, 2160), e.g.: 'V,0<h<=240', 'AV,h>2160'; and 'All' will accumulate all percentages. This is reported whenever an HTML Media Element is suspended or resumed, such as when the page is unloaded.",
     "keyed": true,
     "kind": "exponential",
     "high": 60000,
     "n_buckets": 100,
-    "bug_numbers": [1289668]
+    "bug_numbers": [1289668, 1570634]
   },
   "VIDEO_SUSPEND_RECOVERY_TIME_MS" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "74",
     "description": "Time taken for a video to resume after decoding was suspended, in milliseconds. Keyed by audio presence, hw acceleration, and by height ranges (boundaries: 240. 480, 720, 1080, 2160), e.g.: 'V,0-240', 'AV(hw),2160+'; and 'All' will accumulate all percentages.",
     "keyed": true,
     "kind": "exponential",
     "high": 10000,
     "n_buckets": 100,
-    "bug_numbers": [1294349]
+    "bug_numbers": [1294349, 1570634]
   },
   "VIDEO_AS_CONTENT_SOURCE" : {
     "record_in_processes": ["main", "content"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
     "expires_in_version": "63",
     "description": "Usage of a {visible / invisible} video element as the source of {drawImage(), createPattern(), createImageBitmap() and captureStream()} APIs. (0 = ALL_VISIBLE, 1 = ALL_INVISIBLE, 2 = drawImage_VISIBLE, 3 = drawImage_INVISIBLE, 4 = createPattern_VISIBLE, 5 = createPattern_INVISIBLE, 6 = createImageBitmap_VISIBLE, 7 = createImageBitmap_INVISIBLE, 8 = captureStream_VISIBLE, 9 = captureStream_INVISIBLE)",
     "kind": "enumerated",
     "n_values": 12,
@@ -12021,28 +12033,30 @@
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
     "expires_in_version": "63",
     "kind": "enumerated",
     "n_values": 5,
     "description": "HTML Media Element state when unloading. ended = 0, paused = 1, stalled = 2, seeking = 3, other = 4",
     "bug_numbers": [1261955, 1261955]
   },
   "VIDEO_VP9_BENCHMARK_FPS": {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
-    "bug_numbers": [1230265],
+    "expires_in_version": "74",
+    "bug_numbers": [1230265, 1570634],
     "kind": "linear",
     "high": 1000,
     "n_buckets": 100,
     "description": "720p VP9 decode benchmark measurement in frames per second",
     "releaseChannelCollection": "opt-out"
   },
   "MEDIA_PLAY_PROMISE_RESOLUTION": {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "bug_numbers": [1453176],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
     "expires_in_version": "72",
     "kind": "categorical",
     "labels": ["Resolved", "NotAllowedErr", "SrcNotSupportedErr", "PauseAbortErr", "AbortErr", "UnknownErr"],
     "description": "Records whether promise returned by HTMLMediaElement.play() successfully resolved, or the error code which it was rejected with."
   },
   "MEDIA_CODEC_USED": {
@@ -12946,23 +12960,24 @@
     "record_in_processes": ["main", "content"],
     "alert_emails": ["jya@mozilla.com", "drno@mozilla.com"],
     "expires_in_version": "63",
     "bug_numbers": [1245982],
     "kind": "count",
     "description": "Uses of HTMLMediaElement.fastSeek"
   },
   "VIDEO_DROPPED_FRAMES_PROPORTION" : {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["jya@mozilla.com", "drno@ohlmeier.org"],
-    "expires_in_version": "63",
+    "expires_in_version": "never",
     "kind": "linear",
     "high": 100,
     "n_buckets": 50,
-    "bug_numbers": [1238433],
+    "bug_numbers": [1238433, 1570634],
     "description": "Percentage of frames decoded frames dropped in an HTMLVideoElement"
   },
   "MEDIA_DECODER_BACKEND_USED": {
     "record_in_processes": ["main", "content", "gpu"],
     "alert_emails": ["gfx-telemetry-alerts@mozilla.com", "rhunt@mozilla.com"],
     "bug_numbers": [1259695],
     "expires_in_version": "never",
     "kind": "enumerated",
@@ -13151,22 +13166,23 @@
     "alert_emails": ["gfx-telemetry-alerts@mozilla.com", "rhunt@mozilla.com"],
     "expires_in_version": "never",
     "kind": "count",
     "keyed": true,
     "description": "OpenGL compositor runtime and dynamic failure IDs. This will record a count for each context creation success or failure. Each failure id is a unique identifier that can be traced back to a particular failure branch or blocklist rule.",
     "bug_numbers": [1002846]
   },
   "WEBVTT_TRACK_KINDS": {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": ["alwu@mozilla.com"],
-    "expires_in_version": "55",
+    "expires_in_version": "74",
     "kind": "enumerated",
     "n_values": 10,
-    "bug_numbers": [1280644],
+    "bug_numbers": [1280644, 1570634],
     "description": "Number of the use of the subtitles kind track. 0=Subtitles, 1=Captions, 2=Descriptions, 3=Chapters, 4=Metadata, 5=Undefined Error",
     "releaseChannelCollection": "opt-out"
   },
   "WEBVTT_USED_VTT_CUES": {
     "record_in_processes": ["main", "content"],
     "alert_emails": ["alwu@mozilla.com"],
     "expires_in_version": "55",
     "kind": "count",
@@ -14555,43 +14571,45 @@
     "bug_numbers": [1313429],
     "expires_in_version": "71",
     "kind": "categorical",
     "labels": ["Back", "Forward", "Reload", "Home",  "Fullscreen", "Find", "NewTab", "ReaderView", "AddBookmark", "OpenLocation", "Focus", "Share", "Sidebar"],
     "releaseChannelCollection": "opt-out",
     "description": "What buttons are pressed most often on the Mac Touch Bar?"
   },
   "AUDIO_TRACK_SILENCE_PROPORTION": {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": [
       "alwu@mozilla.com",
       "cpearce@mozilla.com",
       "nohlmeier@mozilla.com"
     ],
-    "expires_in_version": "68",
+    "expires_in_version": "74",
     "kind": "linear",
     "high": 100,
     "n_buckets": 10,
-    "bug_numbers": [1482259],
+    "bug_numbers": [1482259, 1570634],
     "description": "In order to know how many silent audio track in the web comparing to other normal media, we record the silence proportion of audio track of media element. The range of value is from 0% - 100%.",
     "releaseChannelCollection": "opt-out"
   },
   "WEB_AUDIO_BECOMES_AUDIBLE_TIME": {
-    "record_in_processes": ["main", "content"],
+    "record_in_processes": ["content"],
+    "products": ["firefox", "geckoview"],
     "alert_emails": [
       "alwu@mozilla.com",
       "cpearce@mozilla.com",
       "nohlmeier@mozilla.com",
       "padenot@mozilla.com"
     ],
-    "expires_in_version": "69",
+    "expires_in_version": "74",
     "kind": "linear",
     "high": 60,
     "n_buckets": 10,
-    "bug_numbers": [1490074],
+    "bug_numbers": [1490074, 1570634],
     "description": "How long the AudioContext would become audible since it was created, time unit is seconds.",
     "releaseChannelCollection": "opt-out"
   },
   "WEB_AUDIO_AUTOPLAY": {
     "record_in_processes": ["main", "content"],
     "alert_emails": [
       "alwu@mozilla.com",
       "cpearce@mozilla.com",
--- a/toolkit/components/telemetry/Scalars.yaml
+++ b/toolkit/components/telemetry/Scalars.yaml
@@ -1042,44 +1042,50 @@ mediarecorder:
       - main
       - content
 
 media:
   page_count:
     bug_numbers:
       - 1476456
       - 1499803
+      - 1570634
     description: >
       The number of times a top level document is loaded.
-    expires: "68"
+    expires: "74"
     kind: uint
     notification_emails:
       - cpearce@mozilla.com
       - alwu@mozilla.com
       - nohlmeier@mozilla.com
     release_channel_collection: opt-out
-    record_in_processes:
-      - main
+    products:
+      - 'firefox'
+      - 'geckoview'
+    record_in_processes:
       - content
 
   page_had_media_count:
     bug_numbers:
       - 1476456
       - 1499803
+      - 1570634
     description: >
       The number of times a document hierarchy contained at least one audible HTMLMediaElement that had play() called upon it.
-    expires: "68"
+    expires: "74"
     kind: uint
     notification_emails:
       - cpearce@mozilla.com
       - alwu@mozilla.com
       - nohlmeier@mozilla.com
     release_channel_collection: opt-out
-    record_in_processes:
-      - main
+    products:
+      - 'firefox'
+      - 'geckoview'
+    record_in_processes:
       - content
 
   page_had_play_revoked_count:
     bug_numbers:
       - 1476456
       - 1499803
     description: >
       The number of times a document hierarchy contained at least one muted playing HTMLMediaElement that was paused due to becoming unmuted while not being allowed to autoplay.
@@ -1093,27 +1099,30 @@ media:
     record_in_processes:
       - main
       - content
 
   autoplay_would_not_be_allowed_count:
     bug_numbers:
       - 1476456
       - 1499803
+      - 1570634
     description: >
       The number of HTMLMediaElement autoplays on audible HTMLMediaElements which would not be allowed to play if block autoplay was enabled; we'd either prompt for permission to play or block outright depending on user preferences.
-    expires: "68"
+    expires: "74"
     kind: uint
     notification_emails:
       - cpearce@mozilla.com
       - alwu@mozilla.com
       - nohlmeier@mozilla.com
     release_channel_collection: opt-out
-    record_in_processes:
-      - main
+    products:
+      - 'firefox'
+      - 'geckoview'
+    record_in_processes:
       - content
 
   allowed_autoplay_no_audio_track_count:
     bug_numbers:
       - 1480484
       - 1499803
     description: >
       The number of HTMLMediaElement autoplays on HTMLMediaElements without an audio track which would be allowed to play.
@@ -1127,27 +1136,30 @@ media:
     record_in_processes:
       - main
       - content
 
   autoplay_would_be_allowed_count:
     bug_numbers:
       - 1476456
       - 1499803
+      - 1570634
     description: >
       The number of HTMLMediaElement autoplays on audible HTMLMediaElements that would have been allowed (not blocked) by the autoplay policy if block autoplay was enabled.
-    expires: "68"
+    expires: "74"
     kind: uint
     notification_emails:
       - cpearce@mozilla.com
       - alwu@mozilla.com
       - nohlmeier@mozilla.com
     release_channel_collection: opt-out
-    record_in_processes:
-      - main
+    products:
+      - 'firefox'
+      - 'geckoview'
+    record_in_processes:
       - content
 
   blocked_no_metadata:
     bug_numbers:
       - 1483703
       - 1499803
     description: >
       The number of HTMLMediaElements which we blocked because they hadn't loaded metadata yet.