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/metrics/samplers/threads_sampler.rb')
-rw-r--r--lib/gitlab/metrics/samplers/threads_sampler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/samplers/threads_sampler.rb b/lib/gitlab/metrics/samplers/threads_sampler.rb
index a460594fb59..1357e0a5d9b 100644
--- a/lib/gitlab/metrics/samplers/threads_sampler.rb
+++ b/lib/gitlab/metrics/samplers/threads_sampler.rb
@@ -54,7 +54,7 @@ module Gitlab
if thread_name.presence.nil?
'unnamed'
- elsif thread_name =~ /puma threadpool \d+/
+ elsif /puma threadpool \d+/.match?(thread_name)
# These are the puma workers processing requests
'puma threadpool'
elsif use_thread_name?(thread_name)