class Atatus::Spies::RedisSpy
@api private
Public Instance Methods
call(command, &block)
click to toggle source
# File lib/atatus/spies/redis.rb, line 30 def call(command, &block) name = command[0].upcase return call_without_apm(command, &block) if command[0] == :auth Atatus.with_span(name.to_s, 'db.redis') do call_without_apm(command, &block) end end
install()
click to toggle source
# File lib/atatus/spies/redis.rb, line 25 def install if defined?(::Redis) && defined?(::Redis::Client) ::Redis::Client.class_eval do alias call_without_apm call def call(command, &block) name = command[0].upcase return call_without_apm(command, &block) if command[0] == :auth Atatus.with_span(name.to_s, 'db.redis') do call_without_apm(command, &block) end end end end end