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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-24 09:10:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-24 09:10:46 +0300
commit555532c942a339983ab09730be3f1b72eaec38d1 (patch)
treeeae17f23ad17d450b68e6494d77cb920b195b4f7 /lib/gitlab/usage_data_counters
parenta908d3a2c87fa52f6d9c6c459455a138b096ab09 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/usage_data_counters')
-rw-r--r--lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb b/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb
index dda72f7fa3b..477fa288874 100644
--- a/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb
+++ b/lib/gitlab/usage_data_counters/issue_activity_unique_counter.rb
@@ -173,7 +173,7 @@ module Gitlab
private
- def track_snowplow_action(action, author, project)
+ def track_snowplow_action(event_name, author, project)
return unless Feature.enabled?(:route_hll_to_snowplow_phase2, project.namespace)
return unless author
@@ -181,17 +181,18 @@ module Gitlab
ISSUE_CATEGORY,
ISSUE_ACTION,
label: ISSUE_LABEL,
- property: action,
+ property: event_name,
project: project,
namespace: project.namespace,
- user: author
+ user: author,
+ context: [Gitlab::Tracking::ServicePingContext.new(data_source: :redis_hll, event: event_name).to_context]
)
end
- def track_unique_action(action, author)
+ def track_unique_action(event_name, author)
return unless author
- Gitlab::UsageDataCounters::HLLRedisCounter.track_event(action, values: author.id)
+ Gitlab::UsageDataCounters::HLLRedisCounter.track_event(event_name, values: author.id)
end
end
end