Bug 1959768 - avoid sending empty BHR pings, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D245243
This commit is contained in:
@@ -125,7 +125,8 @@ BHRTelemetryService.prototype = Object.freeze({
|
|||||||
// errors) while avoiding timeouts caused by invoking `pingsender` during
|
// errors) while avoiding timeouts caused by invoking `pingsender` during
|
||||||
// testing.
|
// testing.
|
||||||
if (
|
if (
|
||||||
Services.prefs.getBoolPref("toolkit.telemetry.bhrPing.enabled", false)
|
Services.prefs.getBoolPref("toolkit.telemetry.bhrPing.enabled", false) &&
|
||||||
|
this.payload.hangs.length
|
||||||
) {
|
) {
|
||||||
this.payload.timeSinceLastPing = new Date() - this.startTime;
|
this.payload.timeSinceLastPing = new Date() - this.startTime;
|
||||||
lazy.TelemetryController.submitExternalPing("bhr", this.payload, {
|
lazy.TelemetryController.submitExternalPing("bhr", this.payload, {
|
||||||
|
|||||||
Reference in New Issue
Block a user