Skip to content

Add load performance widget telemetry events

What does this MR do and why?

This MR adds the redis hll metrics necessary for us to track view/expand/click events on the load performance merge request widget.

This MR redoes what this MR did but had to be reverted, this time without breaking master because the pipeline has passed with pipeline:run-all-rspec 🤞🏻

For #368874

This MR defines events to be tracked using Redis counter and HLL for the load performance widget.

The load 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 384232-add-load-performance-widget-telemetry
  2. have a GitLab Premium license or higher
  3. find/clone a project that generates load performance reports
  4. open a merge request in the project, ensure pipelines ran for its base and head commits, and navigate to the merge request page
  5. open the Network tab in your browser's devtools
  6. interact with the load 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.

Related to #384232 (closed)

Edited by Miranda Fluharty

Merge request reports