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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user