You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Ruby 2.7.0 I'm getting warnings for keyword/positional arguments separation. For example something like this:
require'new_relic/agent/method_tracer'classAndefself.process(a: ,b:)endclass << selfincludeNewRelic::Agent::MethodTraceradd_method_tracer:processendendAn.process(a: 1,c: 2)# => .gem/ruby/2.7.0/gems/newrelic_rpm-6.8.0.360/lib/new_relic/agent/method_tracer.rb:329: # warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
This is because the traced methods have (*args, &block) as argument definitions instead of (*args, **kwargs, &block). Alternatively you could check for Ruby 2.7 and use the new ... syntax like in the Rails delegaterails/rails#38023.
The text was updated successfully, but these errors were encountered:
Hi @harmdewit! I'm happy to inform you that full Ruby 2.7.0 support will be released with our next agent, which will eliminate the warnings you are seeing.
In Ruby 2.7.0 I'm getting warnings for keyword/positional arguments separation. For example something like this:
This is because the traced methods have
(*args, &block)
as argument definitions instead of(*args, **kwargs, &block)
. Alternatively you could check for Ruby 2.7 and use the new...
syntax like in the Railsdelegate
rails/rails#38023.The text was updated successfully, but these errors were encountered: