From 2ec7b82ce4f891c83465264ebadb6781027b43d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Piotaix?= Date: Wed, 22 Nov 2023 19:20:52 +0100 Subject: [PATCH] fix: Get Rdkafka version from VERSION contant (#726) --- .../opentelemetry/instrumentation/rdkafka/instrumentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb b/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb index 34c0ac27c..4d9919145 100644 --- a/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb +++ b/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb @@ -12,7 +12,7 @@ class Instrumentation < OpenTelemetry::Instrumentation::Base MINIMUM_VERSION = Gem::Version.new('0.10.0') compatible do - Gem.loaded_specs['rdkafka'].version >= MINIMUM_VERSION + Gem::Version.new(::Rdkafka::VERSION) >= MINIMUM_VERSION end install do |_config|