Skip to content

Update Generic packages events to be captured with usage ping

Steve Abrams requested to merge 331455-generic-package-usage-ping into master

What does this MR do?

The generic package registry currently has snowplow events for pulling and pushing packages. We track usage ping metrics for package types that are not being captured for generic packages.

In this MR, we update from using the Gitlab::Tracking module directly to use the pre-existing track_package_event helper, which will include the appropriate tracking for packages.

These events were already added to the usage ping dictionary, this change just allows them to actually be captured.

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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

Related to #331455 (closed)

Merge request reports