Skip to content

Add service ping context to _code_pushes and code_review_user events

What does this MR do and why?

Add custom context to Snowplow event according to the new schema

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

pry(main)> Feature.enable(:route_hll_to_snowplow_phase2)
pry(main)> Gitlab::UsageDataCounters::MergeRequestActivityUniqueCounter.track_approve_mr_action(user: User.first, merge_request: MergeRequest.first)

Screen_Shot_2022-11-23_at_4.46.07_PM

pry(main)> PostReceive.new.send :emit_snowplow_event, Project.first, User.first

Screen_Shot_2022-11-23_at_4.50.35_PM

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 #382419 (closed)

Edited by Niko Belokolodov

Merge request reports