lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb in opentelemetry-instrumentation-rdkafka-0.4.8 vs lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb in opentelemetry-instrumentation-rdkafka-0.4.9
- old
+ new
@@ -7,13 +7,12 @@
module OpenTelemetry
module Instrumentation
module Rdkafka
# The Instrumentation class contains logic to detect and install the Rdkafka instrumentation
class Instrumentation < OpenTelemetry::Instrumentation::Base
- MINIMUM_VERSION = Gem::Version.new('0.10.0')
-
compatible do
- Gem::Version.new(::Rdkafka::VERSION) >= MINIMUM_VERSION
+ gem_version = Gem::Version.new(::Rdkafka::VERSION)
+ Gem::Requirement.new('>= 0.10.0', '< 0.15.0').satisfied_by?(gem_version)
end
install do |_config|
require_patches
patch