Skip to content

Commit

Permalink
fix: Limit activation for fully supported redis versions
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Géczi <ferenc.geczi@ibm.com>
  • Loading branch information
Ferenc- committed Mar 25, 2024
1 parent b60ca72 commit 834f597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instana/activators/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Instana
module Activators
class Redis < Activator
def can_instrument?
defined?(::Redis) && defined?(::Redis::Client) && ::Instana.config[:redis][:enabled]
defined?(::Redis) && Gem::Specification.find_by_name('redis').version < Gem::Version.new('5.0') && defined?(::Redis::Client) && ::Instana.config[:redis][:enabled]
end

def instrument
Expand Down

0 comments on commit 834f597

Please sign in to comment.