-
Notifications
You must be signed in to change notification settings - Fork 608
Typo in Curb instrumentation causes ArgumentError #1033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @knarewski, Thanks very much for bringing this to our attention. Your explanation of the issue, steps to reproduce, and suggestion for a fix are all terrific and very much appreciated! I believe you are spot on with your recommended fix. Via the Would you be interesting in submitting a GitHub Pull Request against the If you would prefer instead for the repo maintainers to make this change, we will be quite happy to do so. |
Hi @fallwith , thank you for a swift response and for confirming my suspicions! I'd prefer the repo maintainers to make the change if possible, thank you. |
Sure thing, @knarewski, the maintainers will work on the change and keep you posted. |
To address an issue apparently dating back to when the Curb instrumentation was first split into separate "prepend" and "chain" approaches, be sure to pass a verb argument to `method_with_tracing`, which requires it. Thank you to @knarewski for bringing this issue to our attention, for providing a means of reproducing an error, and for providing a fix. resolves #1033
@knarewski's fix for this bug (thank you!) was merged with #1036 and should become available with the upcoming v8.6.0 release (ETA next 1-3 weeks). If anyone wishes to leverage the fix before then, they are welcome to use the |
Description
When instrumented by NewRelic, following code:
raises
`method_with_tracing': wrong number of arguments (given 0, expected 1) (ArgumentError)
:Expected Behavior
An object like
#<Method: Curl::Easy(Kernel)#to_s()>
should be returnedSteps to Reproduce
Paste following code into
newrelic_test.rb
and invokeruby newrelic_test.rb
Your Environment
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]
Additional context
I believe the problem can be solved by changing this line to
The text was updated successfully, but these errors were encountered: