Commit 24efb0b3 authored by Stan Hu's avatar Stan Hu

Merge branch 'fix-redis-interceptor' into 'master'

Improve patching of Redis interceptor

See merge request gitlab-org/gitlab!64664
parents f7cdf79c 7fec2f2a
# frozen_string_literal: true
Redis::Client.prepend(Gitlab::Instrumentation::RedisInterceptor)
# Make sure we initialize a Redis connection pool before multi-threaded
# execution starts by
# 1. Sidekiq
......
# frozen_string_literal: true
require 'redis'
module Gitlab
module Instrumentation
module RedisInterceptor
......@@ -99,7 +97,3 @@ module Gitlab
end
end
end
class ::Redis::Client
prepend ::Gitlab::Instrumentation::RedisInterceptor
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment