Skip to content

Commit 3dd21b2

Browse files
committed
squash: fix argument error
1 parent 566411e commit 3dd21b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ module Rdkafka
1010
# The Instrumentation class contains logic to detect and install the Rdkafka instrumentation
1111
class Instrumentation < OpenTelemetry::Instrumentation::Base
1212
compatible do
13-
Gem::Requirement.new('>= 0.10.0', '< 0.15.0').satisfied_by?(::Rdkafka::VERSION)
13+
gem_version = Gem::Version(::Rdkafka::VERSION)
14+
Gem::Requirement.new('>= 0.10.0', '< 0.15.0').satisfied_by?(gem_version)
1415
end
1516

1617
install do |_config|

0 commit comments

Comments
 (0)