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>2023-01-20 03:10:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-20 03:10:22 +0300
commit2f37c1fa002f7be0f978d82bfe545305be48093e (patch)
treee0e9d505434e88363fc607ca00d7cb39e94a3f70 /app/services/notes
parent9bc3ee9ad4c857570b7a029345cc6fff3ed46b5f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/notes')
-rw-r--r--app/services/notes/create_service.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/services/notes/create_service.rb b/app/services/notes/create_service.rb
index 5f05b613288..49817be4f65 100644
--- a/app/services/notes/create_service.rb
+++ b/app/services/notes/create_service.rb
@@ -167,6 +167,20 @@ module Notes
if Feature.enabled?(:notes_create_service_tracking, project)
Gitlab::Tracking.event('Notes::CreateService', 'execute', **tracking_data_for(note))
end
+
+ if Feature.enabled?(:route_hll_to_snowplow_phase4, project&.namespace) && note.for_commit?
+ metric_key_path = 'counts.commit_comment'
+
+ Gitlab::Tracking.event(
+ 'Notes::CreateService',
+ 'create_commit_comment',
+ project: project,
+ namespace: project&.namespace,
+ user: user,
+ label: metric_key_path,
+ context: [Gitlab::Tracking::ServicePingContext.new(data_source: :redis, key_path: metric_key_path).to_context]
+ )
+ end
end
def tracking_data_for(note)