summaryrefslogtreecommitdiff
path: root/app/workers/post_receive.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/post_receive.rb')
-rw-r--r--app/workers/post_receive.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb
index 329ccfc6362..f95176da252 100644
--- a/app/workers/post_receive.rb
+++ b/app/workers/post_receive.rb
@@ -142,12 +142,16 @@ class PostReceive
def emit_snowplow_event(project, user)
return unless Feature.enabled?(:route_hll_to_snowplow_phase2, project.namespace)
+ metric_path = 'counts.source_code_pushes'
Gitlab::Tracking.event(
'PostReceive',
- 'source_code_pushes',
+ :push,
project: project,
namespace: project.namespace,
- user: user
+ user: user,
+ property: 'source_code_pushes',
+ label: metric_path,
+ context: [Gitlab::Tracking::ServicePingContext.new(data_source: :redis, key_path: metric_path).to_context]
)
end
end