Sha256: 7476eef8462cd312ae885c9b3fabc2c5770ecb6e08bde7994577de2022520e53

Contents?: true

Size: 407 Bytes

Versions: 20

Compression:

Stored size: 407 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class Redis < Activator
      def can_instrument?
        defined?(::Redis) && ::Instana.config[:redis][:enabled]
      end

      def instrument
        require 'instana/instrumentation/redis'

        ::Redis::Client.prepend(::Instana::RedisInstrumentation)

        true
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
instana-1.200.0.pre1 lib/instana/activators/redis.rb
instana-1.199.6 lib/instana/activators/redis.rb
instana-1.199.5 lib/instana/activators/redis.rb
instana-1.199.4 lib/instana/activators/redis.rb
instana-1.199.3 lib/instana/activators/redis.rb
instana-1.199.2 lib/instana/activators/redis.rb
instana-1.199.1 lib/instana/activators/redis.rb
instana-1.199.0 lib/instana/activators/redis.rb
instana-1.198.0 lib/instana/activators/redis.rb
instana-1.198.0.pre1 lib/instana/activators/redis.rb
instana-1.197.0 lib/instana/activators/redis.rb
instana-1.197.0.pre2 lib/instana/activators/redis.rb
instana-1.197.0.pre1 lib/instana/activators/redis.rb
instana-1.195.4 lib/instana/activators/redis.rb
instana-1.195.3 lib/instana/activators/redis.rb
instana-1.195.2 lib/instana/activators/redis.rb
instana-1.195.1 lib/instana/activators/redis.rb
instana-1.195.0 lib/instana/activators/redis.rb
instana-1.193.6 lib/instana/activators/redis.rb
instana-1.193.5 lib/instana/activators/redis.rb