Skip to content

Commit

Permalink
fix: Get Rdkafka version from VERSION contant (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotaixr authored Nov 22, 2023
1 parent e616a7c commit 2ec7b82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 2ec7b82

Please sign in to comment.