lib/opentelemetry/instrumentation/rails/instrumentation.rb in opentelemetry-instrumentation-rails-0.28.1 vs lib/opentelemetry/instrumentation/rails/instrumentation.rb in opentelemetry-instrumentation-rails-0.29.0

- old
+ new

@@ -10,11 +10,11 @@ module Instrumentation module Rails # The Instrumentation class contains logic to detect and install the Rails # instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base - MINIMUM_VERSION = Gem::Version.new('6.0.0') + MINIMUM_VERSION = Gem::Version.new('6.1.0') # This gem requires the instrumentantion gems for the different # components of Rails, as a result it does not have any explicit # work to do in the install step. install { true } @@ -22,10 +22,10 @@ compatible { gem_version >= MINIMUM_VERSION } private def gem_version - ::ActionPack.version + ::Rails.gem_version end end end end end