Sha256: 21f9844b8ec65e3bf9cbc901dca2e86e5da5efb6720340e68e0c0b95d314b08f

Contents?: true

Size: 436 Bytes

Versions: 34

Compression:

Stored size: 436 Bytes

Contents

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

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

      def instrument
        require 'instana/instrumentation/redis'

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

        true
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
instana-1.213.3 lib/instana/activators/redis.rb
instana-1.213.2 lib/instana/activators/redis.rb
instana-1.213.1 lib/instana/activators/redis.rb
instana-1.213.0 lib/instana/activators/redis.rb
instana-1.212.0 lib/instana/activators/redis.rb
instana-1.211.0 lib/instana/activators/redis.rb
instana-1.210.1 lib/instana/activators/redis.rb
instana-1.210.0 lib/instana/activators/redis.rb
instana-1.209.8 lib/instana/activators/redis.rb
instana-1.209.7 lib/instana/activators/redis.rb
instana-1.209.6 lib/instana/activators/redis.rb
instana-1.209.5 lib/instana/activators/redis.rb
instana-1.209.4 lib/instana/activators/redis.rb
instana-1.209.3 lib/instana/activators/redis.rb
instana-1.209.2 lib/instana/activators/redis.rb
instana-1.209.1 lib/instana/activators/redis.rb
instana-1.209.0.pre3 lib/instana/activators/redis.rb
instana-1.209.0.pre2 lib/instana/activators/redis.rb
instana-1.209.0.pre1 lib/instana/activators/redis.rb
instana-1.208.0 lib/instana/activators/redis.rb