Skip to content

Add browser performance widget telemetry events

What does this MR do and why?

For #368872 (closed)

This MR defines events to be tracked using Redis counters and HLL for the browser performance widget according to the instructions in the telemetry section of the widget extensions docs.

The browser performance widget extends the base.vue component, which sets up telemetry when it is created that tracks a standard set of events for the widget.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. git checkout 368872-add-browser-performance-widget-telemetry-events
  2. have a GitLab Premium license or higher
  3. echo "Feature.enable(:refactor_mr_widgets_extensions)" | bundle exec rails console
  4. find/clone a project that generates browser performance reports
  5. open a merge request in the project, ensure pipelines ran for its base and head commits, and navigate to the merge request page
  6. open the Network tab in your browser's devtools
  7. interact with the browser performance widget and verify that requests are made to increment_unique_users and increment_counter when you do so

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 Miranda Fluharty

Merge request reports