Bug 1953991 - Add a comment detailing why Glean must be initialized even if telemetry is disabled r=firefox-build-system-reviewers,glandium

Differential Revision: https://phabricator.services.mozilla.com/D245363
This commit is contained in:
Alex Hochheiden
2025-04-22 04:43:12 +00:00
parent 897b2a0d9d
commit e4bc7fd700

View File

@@ -57,6 +57,9 @@ def create_telemetry_from_environment(settings):
from pathlib import Path from pathlib import Path
# We must initialize Glean even if telemetry is disabled to ensure a deletion ping is sent.
# This deletes any previously collected data if the user opts out of telemetry.
# Creating GleanTelemetry will load and register pings, # Creating GleanTelemetry will load and register pings,
# which must be done before init or no metrics can be recorded for them. # which must be done before init or no metrics can be recorded for them.
telemetry_interface = GleanTelemetry() telemetry_interface = GleanTelemetry()