@sentry/bun
, that instruments your Bun application to automatically collect error and performance data.
Don’t already have an account and Sentry project established? Head over to sentry.io, then return to this page.
To start using Sentry with Bun, first install the Sentry Bun SDK.
terminal
Then, initialize the Sentry SDK with your Sentry DSN in your app’s entry file. You can find your DSN in your Sentry project settings.
You can verify that Sentry is working by capturing a test error:
To learn more about Sentry and using the Sentry Bun SDK, view the Sentry documentation.