Bug 1496552 - Use build ID as the batchID for prio-encoded telemetry r=chutten
authorRobert Helmer <rhelmer@mozilla.com>
Thu, 04 Oct 2018 20:38:04 +0000
changeset 439805 3e1d1b6a529eb202af9a579f08e6bc293d1e4b12
parent 439804 8ba29ee081caa2de560c4b68f548fb04d6cbb567
child 439806 690011b571305eb937172d9d68e5dd4260f6e33e
push id34790
push usertoros@mozilla.com
push dateFri, 05 Oct 2018 21:42:45 +0000
treeherdermozilla-central@d58b6e90927f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschutten
bugs1496552
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1496552 - Use build ID as the batchID for prio-encoded telemetry r=chutten Differential Revision: https://phabricator.services.mozilla.com/D7781
toolkit/components/telemetry/pings/TelemetrySession.jsm
--- a/toolkit/components/telemetry/pings/TelemetrySession.jsm
+++ b/toolkit/components/telemetry/pings/TelemetrySession.jsm
@@ -1977,17 +1977,17 @@ var Impl = {
         prioParams[prioName] = firstCount;
 
       } catch (ex) {
         this._log.error(ex);
       }
     }
 
     // Prio encode the data and add to payload.
-    const batchID = Policy.now();
+    const batchID = Services.appinfo.appBuildID;
 
     let prioEncodedData;
 
     try {
       prioEncodedData = PrioEncoder.encode(batchID, prioParams);
     } catch (ex) {
       this._log.error(ex);
     }