From 3dd21b29d240984808db997976805f51c8956735 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Tue, 7 Jan 2025 14:05:45 -0600 Subject: [PATCH] squash: fix argument error --- .../opentelemetry/instrumentation/rdkafka/instrumentation.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb b/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb index 0765a77c5..e321e6e43 100644 --- a/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb +++ b/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb @@ -10,7 +10,8 @@ module Rdkafka # The Instrumentation class contains logic to detect and install the Rdkafka instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base compatible do - Gem::Requirement.new('>= 0.10.0', '< 0.15.0').satisfied_by?(::Rdkafka::VERSION) + gem_version = Gem::Version(::Rdkafka::VERSION) + Gem::Requirement.new('>= 0.10.0', '< 0.15.0').satisfied_by?(gem_version) end install do |_config|