Add API endpoint for Internal Events Tracking
Problem
As brought up in #410518 (comment 1390157305) we do not want to replicate the logic around which counters to create for a particular event (e.g. redis_hll
, redis
) in the Frontend. Apart from the duplication involved in this effort it would also not be feasible to send data about all the metrics to the frontend. However, currently we do not have the possibility to send an internal event from the Frontend to the Backend to be tracked. This possibility is only available for legacy tracking (e.g. /increment_unique_users
).
Desired Outcome
We have an API endpoint (e.g. increment_event
), which can be called when an event is triggered. Calling the API endpoint should lead to the same result as if Gitlab::InternalEvents.track_event
would be called from the backend with this event.
Potential Solutions
TBD
How to verify
TBD
Further Actions
TBD