diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 00:09:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 00:09:00 +0300 |
commit | bf217da41b429d80da49287b84dadcbf499ac22c (patch) | |
tree | b3499733d7e1abb88a3f0975333c85d00a80fd96 /lib/gitlab/tracking.rb | |
parent | 559d99e40299e67969023a1afd23d084fbf23ed1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/tracking.rb')
-rw-r--r-- | lib/gitlab/tracking.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/tracking.rb b/lib/gitlab/tracking.rb index ca4afb4c19c..09697705361 100644 --- a/lib/gitlab/tracking.rb +++ b/lib/gitlab/tracking.rb @@ -24,8 +24,8 @@ module Gitlab Gitlab::CurrentSettings.snowplow_enabled? end - def event(category, action, label: nil, property: nil, value: nil, context: [], standard_context: nil) - context.push(standard_context.to_context) if standard_context + def event(category, action, label: nil, property: nil, value: nil, context: [], project: nil, user: nil, namespace: nil) # rubocop:disable Metrics/ParameterLists + context += [Tracking::StandardContext.new(project: project, user: user, namespace: namespace).to_context] snowplow.event(category, action, label: label, property: property, value: value, context: context) product_analytics.event(category, action, label: label, property: property, value: value, context: context) |