Sha256: d7db5251bd6f4d19188ffadd05fee2ea54d7da4f1916a6837eaa0b1c3ebf7cf2

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

if defined?(::Redis)
  Appsignal.logger.info("Loading Redis (#{ Redis::VERSION }) integration")

  ::Redis::Client.class_eval do
    alias process_without_appsignal process

    def process(commands, &block)
      ActiveSupport::Notifications.instrument('query.redis') do
        process_without_appsignal(commands, &block)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appsignal-0.12.rc.7 lib/appsignal/instrumentations/redis.rb
appsignal-0.12.rc.6 lib/appsignal/instrumentations/redis.rb
appsignal-0.12.rc.5 lib/appsignal/instrumentations/redis.rb