lib/opentelemetry/instrumentation/action_pack/instrumentation.rb in opentelemetry-instrumentation-action_pack-0.1.3 vs lib/opentelemetry/instrumentation/action_pack/instrumentation.rb in opentelemetry-instrumentation-action_pack-0.1.4
- old
+ new
@@ -28,10 +28,10 @@
option :enable_recognize_route, default: false, validate: :boolean
private
def gem_version
- Gem.loaded_specs['actionpack'].version
+ ::ActionPack.version
end
def patch
::ActionController::Metal.prepend(Patches::ActionController::Metal)
end