Skip to content

Initial Support for Bun JS Runtime #9042

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
AbhiPrasad opened this issue Sep 18, 2023 · 5 comments
Closed

Initial Support for Bun JS Runtime #9042

AbhiPrasad opened this issue Sep 18, 2023 · 5 comments
Assignees

Comments

@AbhiPrasad
Copy link
Member

AbhiPrasad commented Sep 18, 2023

Update! With https://github.com/getsentry/sentry-javascript/releases/tag/7.70.0 we've shipped a beta version of @sentry/bun, our official Sentry SDK for the Bun JavaScript runtime.

bun add @sentry/bun

This is still in beta, but we plan to keep adding features to it! Please note some of the unhandled exception error monitoring is blocked by oven-sh/bun#5091, but the Bun team seems to be actively working on it!

ref #5611
ref #7979

### Phase 1
- [ ] https://github.com/getsentry/sentry-javascript/pull/9029
- [x] Add async local storage to make `runWithAsyncContext` work
- [ ] https://github.com/getsentry/sentry-javascript/pull/9050
- [ ] https://github.com/getsentry/sentry-javascript/pull/9049
- [x] Release `@sentry/bun`: https://github.com/getsentry/sentry-javascript/releases/tag/7.70.0
- [ ] https://github.com/getsentry/sentry-docs/pull/7858
### Phase 2
- [ ] https://github.com/getsentry/sentry-release-registry/pull/119
- [ ] https://github.com/getsentry/sentry-javascript/pull/9073
- [ ] https://github.com/getsentry/sentry-javascript/pull/9080
- [x] Check to see how to test against multiple Bun versions
@AbhiPrasad AbhiPrasad self-assigned this Sep 18, 2023
@AbhiPrasad
Copy link
Member Author

partly dependent on oven-sh/bun#5091

@AbhiPrasad
Copy link
Member Author

@AbhiPrasad
Copy link
Member Author

For now we test against latest Bun version. When the global error events are added by bun we can test against a matrix in CI.

@rodrigoehlers
Copy link

Is there an overview of what features this supports and which ones it doesn't? We have a bun api using ElysiaJS and would like to time a few transactions. Since there is not full support yet we're not trying to use this as a plugin/middleware but instead do manual transactions. Would this work?

@AbhiPrasad
Copy link
Member Author

Since there is not full support yet we're not trying to use this as a plugin/middleware but instead do manual transactions. Would this work?

Yes for sure! You can take some inspiration from our Bun.serve instrumentation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants