Set telemetryEnabled config in the Web IDE
What does this MR do and why?
Pass the "do not track" signal to the Web IDE by setting the telemetryEnabled
configuration value.
The "do not track" signal is obtained from the Tracking module.
Why?
The Web IDE sends code suggestions' telemetry data to Snowplow. We want to respect the user's "do not track" preference in the Web IDE too therefore we pass the "do not track" signal using this configuration field.
See https://gitlab.com/gitlab-org/gitlab-web-ide/-/issues/277
Screenshots or screen recordings
This change doesn't introduce visual changes.
How to set up and validate locally
-
Enable Snowplow in your local GDK instance.
-
Check / uncheck the "do not track" signal in your web browser.
-
Enable code suggestions in the Web IDE by clicking the "Code suggestions" activity bar button (the fox with stars). It doesn't matter if the code suggestions feature doesn't work. Telemetry data is still sent to track failures.
-
Edit a JavaScript or go file in the Web IDE.
-
Open the web browser's network tab. You should see outbound network requests to the Snowplow server.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.