lib/instana/activators/action_view.rb in instana-1.214.3 vs lib/instana/activators/action_view.rb in instana-1.214.4
- old
+ new
@@ -10,11 +10,14 @@
def instrument
require 'instana/instrumentation/action_view'
::ActionView::PartialRenderer
- .prepend(Instana::Instrumentation::ActionView)
-
+ .prepend(Instana::Instrumentation::ActionView::PartialRenderer)
+ if defined?(::ActionView::CollectionRenderer)
+ ::ActionView::CollectionRenderer
+ .prepend(Instrumentation::ActionView::CollectionRenderer)
+ end
true
end
end
end
end