Module: BrainzLab::Instrumentation::RedisInstrumentation::Middleware

Defined in:
lib/brainzlab/instrumentation/redis.rb

Overview

Middleware for Redis 5+ (RedisClient)

Instance Method Summary collapse

Instance Method Details

#call(command, redis_config) ⇒ Object



53
54
55
56
57
# File 'lib/brainzlab/instrumentation/redis.rb', line 53

def call(command, redis_config)
  return super unless should_track?

  track_command(command) { super }
end

#call_pipelined(commands, redis_config) ⇒ Object



59
60
61
62
63
# File 'lib/brainzlab/instrumentation/redis.rb', line 59

def call_pipelined(commands, redis_config)
  return super unless should_track?

  track_pipeline(commands) { super }
end