Skip to content

Track NPM dist-tags routes via snowplow

What does this MR do and why?

This issue has two requirements:

  1. Add job and deploy token authentication to npm dist-tag routes, which is !112804 (merged).
  2. Measure npm dist-tag routes via snowplow, so that we can understand how often this route is used on GitLab.com.

This MR addresses the 2nd requirement.

How to set up and validate locally

  1. Make sure snowplow is run locally.
  2. Run any npm dist-tag commands (add/ls/rm) on a published NPM package.
  3. Open http://localhost:9091/micro/good in the browser and you should find the related events:
  • npm dist-tag ls @scope/package should create list_tags event.
  • npm dist-tag add @scope/package@version my-tag should create create_tag events.
  • npm dist-tag rm @scope/package@version my-tag should create delete_tag events.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #258835 (closed)

Edited by Moaz Khalifa

Merge request reports