Prevent frontend from logging Snowplow events twice
requested to merge 425883-make-snowplow-tracking-optional-in-gitlab-internalevents-track_event into master
What does this MR do and why?
Currently track_event
on the frontend will both trigger a Snowplow event and invoke the /api/v4/usage_data/track_event
endpoint which will also trigger a Snowplow event.
This MR changes the API to not track Snowplow events and instead let the frontend do it.
How to set up and validate locally
If you don't have Snowplow Micro set up with GDK, please follow this guide: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/snowplow_micro.md
- Check out
master
- Reset Snowplow Micro by clicking "Reset" at http://gdk.test:9090/micro/ui
- Visit http://gdk.test:3000/admin/dev_ops_reports and click the "Dev" tab.
- See that two events with
"event_name": "i_analytics_dev_ops_adoption"
was registered at http://gdk.test:9090/micro/good - Check out the branch for this MR
- Redo steps 2 and 3.
- See that only one event with
"event_name": "i_analytics_dev_ops_adoption"
was registered at http://gdk.test:9090/micro/good
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.
Related to #425883 (closed)
Edited by Niko Belokolodov