Skip to content

Make it easier to call Gitlab::Tracking.event with standard context

Alishan Ladhani requested to merge ali/make-tracking-event-easier-to-call into master

What does this MR do?

Improve usability of calling Gitlab::Tracking with a StandardContext. By creating a helper method, it becomes more readable, and improves ease of use.

Note that we are only using this helper for one event right now. Documentation will be updated once we decide to roll it out for all events (#299132 (closed)).

Builds on !49873 (merged).

Related to #298749 (closed).

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Alishan Ladhani

Merge request reports