BunServer

Instruments Bun.serve to automatically create transactions and capture errors. (default)

Import name: Sentry.bunServerIntegration

This integration is enabled by default. If you'd like to modify your default integrations, read this.

The bunServerIntegration instruments Bun.serve API to automatically create transactions and capture errors.

Copied
import * as Sentry from '@sentry/bun';

Sentry.init({
  integrations: [new Sentry.bunServerIntegration()],
});
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").