Standardize backend tracking to use a single method
Based on this discussion: #299132 (comment 507458909)
We would like to have only one way to track backend events. Events should be sent by calling Gitlab::Tracking.event
.
Currently, there are two helpers that also exist, which do not seem to provide much additional value.
- Controller concern: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/tracking.rb#L7
- API helper: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/api/helpers.rb#L542
These can be removed in favour of the standard call to Gitlab::Tracking.event
.
Edited by Alishan Ladhani