Skip to content

Add metrics for distinct active workspace users

What does this MR do and why?

Introduce workspace active user metric by utilising our existing events.

  • Event for clicking Open workspace button defined here, which could fit into opens a workspace
  • Event for tracking workspace creation event defined here, which could fit into creates a workspace
  • Event for tracking active workspace defined here, which could fit into restarts a suspended workspace

We only count distinct event by user.id

References

Issue - Add metrics for distinct active workspace users (#537568 - closed)

Screenshots or screen recordings

Tried with below approach on the new metric.

  • Create one workspace first; click Open workspace a few times with the same user; and see only one counter increase on the unique user_id metric introduced.
  • Then triggered event with different user signed in; and see the counter increased by one again

Screenshot_2025-05-28_at_4.18.52_pm

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by zli

Merge request reports

Loading