lib/opentelemetry/instrumentation/ruby_kafka/instrumentation.rb in opentelemetry-instrumentation-ruby_kafka-0.18.5 vs lib/opentelemetry/instrumentation/ruby_kafka/instrumentation.rb in opentelemetry-instrumentation-ruby_kafka-0.18.6
- old
+ new
@@ -26,10 +26,10 @@
end
private
def gem_version
- Gem.loaded_specs['ruby-kafka']&.version || Gem::Version.new(Kafka::VERSION)
+ Gem::Version.new(Kafka::VERSION)
end
def require_patches
require_relative 'patches/producer'
require_relative 'patches/consumer'