class InfluxReporter::Injections::Redis::Injector
Public Instance Methods
call(command, &block)
click to toggle source
# File lib/influx_reporter/injections/redis.rb, line 11 def call(command, &block) signature = command[0] InfluxReporter.trace signature.to_s, 'cache.redis' do call_without_influx_reporter(command, &block) end end
install()
click to toggle source
# File lib/influx_reporter/injections/redis.rb, line 7 def install ::Redis::Client.class_eval do alias_method :call_without_influx_reporter, :call def call(command, &block) signature = command[0] InfluxReporter.trace signature.to_s, 'cache.redis' do call_without_influx_reporter(command, &block) end end end end