BunServer for Bun

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

This integration only works in the Bun runtime.

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.

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

Sentry.init({
  integrations: [Sentry.bunServerIntegration()],
});
Was this helpful?
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").