NewRelic::Agent::Instrumentation::ControllerInstrumentation .add_transaction_tracer method is missing **kwargs in its signature #671
Labels
community
To tag external issues and PRs submitted by the community
Projects
Description
Considering the class
Bar
that looks like this:I get
ArgumentError: wrong number of arguments (given 1, expected 0)
when using the .add_transaction_tracer method on internal methodfoo
iffoo
has a key word argument on ruby version 3.0.1 ANDfoo
is invoked with key word arguments.Expected Behavior
I expect not to get the ArgumentError.
Troubleshooting or [NR Diag]
NA
Steps to Reproduce
Run
ruby bar.rb
in my example project.Your Environment
Ruby Version 3.0.1
newrelic_rpm Version 7.0.0
Additional context
To fix, consider adding
**kwargs
to the dynamic method signature hereIt would look like so:
The text was updated successfully, but these errors were encountered: