-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Bun HTTP breaks Sentry Tracing #7472
Comments
Here is the problem: #5091 |
experiencing this also with:
|
Can I ask, is this an issue with the Sentry SDK, like does it work if you remove/disable Sentry? |
Disabling sentry fixes the issue for me (commenting out Sentry.init or adding this line to the Sentry.init config object: The response on the relevant sentry issue was that since their monkey patching works for node that this must be an issue with bun |
Hello! Thanks for all of your hard work. @Jarred-Sumner I think lots of teams are eager to move to Bun but can't due this issue, do you know when we can expect a fix for this? 🥲 Thanks again! |
We changed how we do monkeypatching of HTTP in our upcoming new Sentry JavaScript SDKs major version, 8.0. Currently there is a beta release: https://github.com/getsentry/sentry-javascript/releases/tag/8.0.0-beta.1 This means you can use Sentry with the v8 beta and tracing should work with Bun! |
Fixed with 8.0.0 of https://docs.sentry.io/platforms/javascript/guides/bun https://docs.sentry.io/platforms/javascript/guides/bun/migration/v7-to-v8 |
@AbhiPrasad Does this use the latest changes from v1.1.8? |
Yes! PR here: getsentry/sentry-javascript#11960 |
What version of Bun is running?
1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157
What platform is your computer?
Darwin 23.1.0 arm64 arm
What steps can reproduce the bug?
Ref: getsentry/sentry-javascript#9564 and getsentry/sentry-javascript#9608
Code Sample
index.ts
files.ts
package.json
What is the expected behavior?
File is uploaded to S3 successfully, action is logged to Sentry.
What do you see instead?
Request is never completed. It doesn't timeout either, just keeps the client waiting.
AFAIK I understand it, the S3 client doesn't even get a response so not sure if the file upload request is even sent.
Logs:
Additional information
Seems like a Bun issue from getsentry/sentry-javascript#9564 (comment)
Removing the HTTP integration from Sentry fixes the issue for now, but we lose some logs we really need
The text was updated successfully, but these errors were encountered: