Revert "Issue #1273 - Remove Telemetry from Gloda"

This reverts commit 4db1ae892bad565e8e59ec6034b4c98946077248.
This commit is contained in:
Matt A. Tobin 2019-11-10 20:14:28 -05:00 committed by Roy Tam
commit 8ca877d7d7
3 changed files with 31 additions and 0 deletions

View file

@ -1030,6 +1030,17 @@ var GlodaDatastore = {
var dbConnection;
// Report about the size of the database through telemetry (if there's a
// database, naturally).
if (dbFile.exists()) {
try {
let h = Services.telemetry.getHistogramById("THUNDERBIRD_GLODA_SIZE_MB");
h.add(dbFile.fileSize/1048576);
} catch (e) {
this._log.warn("Couldn't report telemetry", e);
}
}
// Create the file if it does not exist
if (!dbFile.exists()) {
this._log.debug("Creating database because it doesn't exist.");