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