diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-03 18:10:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-03 18:10:48 +0300 |
commit | af7ba639ec0b6bba26adc244e8971d4113d2c041 (patch) | |
tree | e5369d7cd9aaaca075c21dd5d709501e78d1089d /lib/gitlab/instrumentation | |
parent | 53ea1228bef63279e558b08b50144775f6f3a4c4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/instrumentation')
-rw-r--r-- | lib/gitlab/instrumentation/redis_interceptor.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitlab/instrumentation/redis_interceptor.rb b/lib/gitlab/instrumentation/redis_interceptor.rb index 0f21a16793d..ba25e54ac9f 100644 --- a/lib/gitlab/instrumentation/redis_interceptor.rb +++ b/lib/gitlab/instrumentation/redis_interceptor.rb @@ -41,7 +41,10 @@ module Gitlab instrumentation_class.add_call_details(duration, args) end - if duration > DURATION_ERROR_THRESHOLD && Feature.enabled?(:report_on_long_redis_durations, default_enabled: :yaml) + if duration > DURATION_ERROR_THRESHOLD && + instrumentation_class == ::Gitlab::Instrumentation::Redis::SharedState && + Feature.enabled?(:report_on_long_redis_durations, default_enabled: :yaml) + Gitlab::ErrorTracking.track_exception(MysteryRedisDurationError.new(caller), command: command_from_args(args), duration: duration, |