Bug 1923028 - Migrate scalars to use Glean APIs for startup.*, r=chutten,mossop.

Differential Revision: https://phabricator.services.mozilla.com/D225862
This commit is contained in:
Florian Quèze
2024-10-19 07:54:50 +00:00
parent 657e18bb7d
commit 4052c38a05
6 changed files with 172 additions and 28 deletions

View File

@@ -1903,11 +1903,8 @@ BrowserGlue.prototype = {
Services.startup.secondsSinceLastOSRestart;
let isColdStartup =
nowSeconds - secondsSinceLastOSRestart > lastCheckSeconds;
Services.telemetry.scalarSet("startup.is_cold", isColdStartup);
Services.telemetry.scalarSet(
"startup.seconds_since_last_os_restart",
secondsSinceLastOSRestart
);
Glean.startup.isCold.set(isColdStartup);
Glean.startup.secondsSinceLastOsRestart.set(secondsSinceLastOSRestart);
} catch (ex) {
console.error(ex);
}