Module: Sentry::Redis::GlobalRedisInstrumentation Private

Defined in:
lib/sentry/redis.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#call(command, redis_config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



86
87
88
89
90
# File 'lib/sentry/redis.rb', line 86

def call(command, redis_config)
  Sentry::Redis
    .new([command], redis_config.host, redis_config.port, redis_config.db)
    .instrument { super }
end

#call_pipelined(commands, redis_config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



92
93
94
95
96
# File 'lib/sentry/redis.rb', line 92

def call_pipelined(commands, redis_config)
  Sentry::Redis
    .new(commands, redis_config.host, redis_config.port, redis_config.db)
    .instrument { super }
end