Bug 1837230 - Instrument an early event for FOG validation r=perry.mcmanis,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D180364
This commit is contained in:
Chris H-C 2023-06-09 20:19:25 +00:00
parent bcbcd41ab6
commit 525ad5b534
3 changed files with 29 additions and 0 deletions

View File

@ -1043,6 +1043,13 @@ nsDefaultCommandLineHandler.prototype = {
handle: function dch_handle(cmdLine) {
var urilist = [];
if (cmdLine && cmdLine.state == Ci.nsICommandLine.STATE_INITIAL_LAUNCH) {
// Since the purpose of this is to record early in startup,
// only record on launches, not already-running invocations.
Services.telemetry.setEventRecordingEnabled("telemetry", true);
Glean.fogValidation.validateEarlyEvent.record();
}
if (AppConstants.platform == "win") {
// Windows itself does disk I/O when the notification service is
// initialized, so make sure that is lazy.

View File

@ -135,3 +135,15 @@ fog.ipc:
- chutten@mozilla.com
- glean-team@mozilla.com
expires: never
fog.validation:
validate_early_event:
type: event
description: |
An event sent very early to validate that FOG is able to process it.
bugs: ["https://bugzilla.mozilla.org/show_bug.cgi?id=1837230"]
data_reviews: ["https://bugzilla.mozilla.org/show_bug.cgi?id=1837230"]
data_sensitivity: ["interaction"]
notification_emails: ["chutten@mozilla.com"]
expires: 120
telemetry_mirror: Telemetry_EarlyEvent_Startup

View File

@ -1630,6 +1630,16 @@ messaging_experiments:
- omc@mozilla.com
expiry_version: never
telemetry:
early_event:
objects: ["startup"]
bug_numbers: [1837230]
notification_emails: ["chutten@mozilla.com"]
products: ["firefox"]
record_in_processes: ["main"]
description: This is a mirrored-to verification event.
expiry_version: "120"
# This category contains event entries used for Telemetry tests.
# They will not be sent out with any pings.
telemetry.test: