diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 21:18:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-16 21:18:33 +0300 |
commit | f64a639bcfa1fc2bc89ca7db268f594306edfd7c (patch) | |
tree | a2c3c2ebcc3b45e596949db485d6ed18ffaacfa1 /lib/gitlab/tracking.rb | |
parent | bfbc3e0d6583ea1a91f627528bedc3d65ba4b10f (diff) |
Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40
Diffstat (limited to 'lib/gitlab/tracking.rb')
-rw-r--r-- | lib/gitlab/tracking.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/tracking.rb b/lib/gitlab/tracking.rb index 09697705361..9bb793a75cc 100644 --- a/lib/gitlab/tracking.rb +++ b/lib/gitlab/tracking.rb @@ -25,10 +25,10 @@ module Gitlab end 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] + contexts = [Tracking::StandardContext.new(project: project, user: user, namespace: namespace).to_context, *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) + snowplow.event(category, action, label: label, property: property, value: value, context: contexts) + product_analytics.event(category, action, label: label, property: property, value: value, context: contexts) end def self_describing_event(schema_url, data:, context: nil) |