summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormicael.bergeron <micaelbergeron@gmail.com>2017-11-08 16:21:08 -0500
committermicael.bergeron <micaelbergeron@gmail.com>2017-11-08 16:21:08 -0500
commit7fd3ce417f50c6a5f4f4d852514e5f4f03945327 (patch)
tree5170cd5b22a86647c006a0a2d54d2b6465a5fc98 /lib
parent0c3877a48827b587b407174410196993bec79f73 (diff)
downloadgitlab-ce-7fd3ce417f50c6a5f4f4d852514e5f4f03945327.tar.gz
Revert "add metrics tagging to the sidekiq middleware"39958-updatemergerequestsworker-are-failing-on-metric-tagging
This reverts commit d5859bb9d59b3750ac6e9b8c4c17d69c4c3ed077. This reverts commit 2b7e03cf699f9d266af585a1a9399c3e219fe063. This reverts commit 7799a9bc442738935104d3b047c257e5c5884d95.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/metrics/sidekiq_middleware.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/metrics/sidekiq_middleware.rb b/lib/gitlab/metrics/sidekiq_middleware.rb
index 55c707d5386..df4bdf16847 100644
--- a/lib/gitlab/metrics/sidekiq_middleware.rb
+++ b/lib/gitlab/metrics/sidekiq_middleware.rb
@@ -11,8 +11,6 @@ module Gitlab
# Old gitlad-shell messages don't provide enqueued_at/created_at attributes
trans.set(:sidekiq_queue_duration, Time.now.to_f - (message['enqueued_at'] || message['created_at'] || 0))
trans.run { yield }
-
- worker.metrics_tags.each { |tag, value| trans.add_tag(tag, value) } if worker.respond_to?(:metrics_tags)
rescue Exception => error # rubocop: disable Lint/RescueException
trans.add_event(:sidekiq_exception)