Skip to content

Resolve "Collection of namespace_id and project_id in Snowplow"

What does this MR do?

It adds namespace and project ids to GitLab standard context for Snowplow tracking. This change is behind feature flag unitl this changes are announced by the product

Screenshots or Screencasts (strongly suggested)

Feature flag turned off

ff_off

Feature flag turned on

ff_on

How to setup and validate locally (strongly suggested)

  1. In rails console enable feature
 ::Feature.enable(:add_namespace_and_project_to_snowplow_tracking)
  1. Set up snowplow micro collector https://docs.gitlab.com/ee/development/snowplow/#snowplow-micro
  2. Set external tracing URL in project > settings > monitor http://gdk.test:3000/gitlab-org/gitlab-shell/-/settings/operations
  3. visit Snowplow micro collector http://localhost:9090/micro/good and look for event with category: project:operations:tracing and action: external_url_populated check if project and namespace ids are present whiting contexts nested object.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #338593 (closed)

Edited by Nicolas Dular

Merge request reports

Loading