Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/tracking.rb')
-rw-r--r--lib/gitlab/tracking.rb6
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)