Sha256: 233360a2e7a2cbe9cf39aa29d68d606c4efb4623b391985751cc9105f21793e4
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
# typed: false require_relative '../integration' require_relative 'configuration/settings' require_relative 'patcher' module Datadog module Tracing module Contrib module Redis # Description of Redis integration class Integration include Contrib::Integration MINIMUM_VERSION = Gem::Version.new('3.2') MAX_VERSION = Gem::Version.new('5') # @public_api Changing the integration name or integration options can cause breaking changes register_as :redis, auto_patch: true def self.version Gem.loaded_specs['redis'] && Gem.loaded_specs['redis'].version end def self.loaded? !defined?(::Redis).nil? end def self.compatible? super && version >= MINIMUM_VERSION && version < MAX_VERSION end def new_configuration Configuration::Settings.new end def patcher Patcher end def resolver @resolver ||= Configuration::Resolver.new end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.7.0 | lib/datadog/tracing/contrib/redis/integration.rb |
ddtrace-1.6.1 | lib/datadog/tracing/contrib/redis/integration.rb |