-
Notifications
You must be signed in to change notification settings - Fork 211
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
autoInstrument is broken with got library #1103
Labels
Comments
richardsimko
changed the title
autoInstrument network is broken with got library
autoInstrument is broken with got library
May 15, 2023
@richardsimko Thanks for the detailed report and test case. We'll take a look asap. |
we are running into the very same issue with got |
Same issue here. |
Any update on this? |
12 tasks
Released in 2.26.4. https://github.com/rollbar/rollbar.js/releases/tag/v2.26.4. Thank you @jaridmargolin . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repro repo: https://github.com/richardsimko/rollbar-got-issue
Using
autoInstrument
does not work at all with the very popular http request librarygot
.When running the referenced repo with
ROLLBAR_ACCESS_TOKEN=<token> node test.js
it produces the following error:I believe the issue is in
urlHelpers
since it's assigningcb = options
without checking thatoptions actually is a function
. Removing the assignment ofcb = options
does solve the issue, however I don't know what implications that might have for other things so I don't want to submit a PR with that as the solution.rollbar.js/src/server/telemetry/urlHelpers.js
Line 20 in e964ecb
The text was updated successfully, but these errors were encountered: