Issue #21 - Remove Telemetry from Push and devtools.

This commit is contained in:
Moonchild 2021-10-31 09:50:27 +00:00 committed by roytam1
commit 69ebaa5450
8 changed files with 1 additions and 71 deletions

View file

@ -84,7 +84,6 @@ PushRecord.prototype = {
Math.round(8 * Math.pow(daysElapsed, -0.8)),
prefs.get("maxQuotaPerSubscription")
);
Services.telemetry.getHistogramById("PUSH_API_QUOTA_RESET_TO").add(this.quota);
}
},
@ -125,7 +124,6 @@ PushRecord.prototype = {
// We check for ctime > 0 to skip older records that did not have ctime.
if (this.isExpired() && this.ctime > 0) {
let duration = Date.now() - this.ctime;
Services.telemetry.getHistogramById("PUSH_API_QUOTA_EXPIRATION_TIME").add(duration / 1000);
}
},