Since the wrappers render_partial_with_instana and render_collection_with_instana don't accept any parameters, this crashes views with partials in Rails 6.
Proposed Fix
To accommodate old and new versions of Rails, redefine the wrapper to:
def render_partial_with_instana(*args)
...
render_partial_without_instana(*args)
...
end
This should be an easy fix.
https://github.com/instana/ruby-sensor/blob/master/lib/instana/frameworks/instrumentation/action_view.rb#L9
Currently, the gem hijacks
:render_partial
and:render_collection
in::ActionView::PartialRenderer
. Prior to Rails 6, these methods didn't take parameters, but as of Rails 6, the signature of those methods has changed to accept two parameters: https://github.com/rails/rails/blob/6-0-stable/actionview/lib/action_view/renderer/partial_renderer.rb#L322Since the wrappers
render_partial_with_instana
andrender_collection_with_instana
don't accept any parameters, this crashes views with partials in Rails 6.Proposed Fix
To accommodate old and new versions of Rails, redefine the wrapper to:
(same with
render_collection_with_instana
)