Skip to content

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

  1. Enable Snowplow in your local GDK instance.

  2. Check / uncheck the "do not track" signal in your web browser.

  3. 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.

    Screenshot 2023-09-25 at 1.20.53 PM.png

  4. Edit a JavaScript or go file in the Web IDE.

  5. 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.

Edited by Enrique Alcántara

Merge request reports

Loading