Skip to content

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented May 9, 2024

Add support for global onUnhandled Error/Promise for Bun.

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

Sentry.init({
    dsn: "DSN",
});

console.log("Hello via Bun!");

throw new Error('Unhandled Bun Sentry Error!');
image

ref: oven-sh/bun#5091

@HazAT HazAT merged commit ab79709 into develop May 10, 2024
@HazAT HazAT deleted the bun-globalhandlers branch May 10, 2024 07:36
andreiborza pushed a commit that referenced this pull request May 16, 2024
Add support for global onUnhandled Error/Promise for Bun.

```javascript
import * as Sentry from "@sentry/bun";

Sentry.init({
    dsn: "DSN",
});

console.log("Hello via Bun!");

throw new Error('Unhandled Bun Sentry Error!');
```

<img width="1063" alt="image"
src="https://github.com/getsentry/sentry-javascript/assets/363802/fd90969f-82a4-4300-a67e-1ebb5cf540fa">

ref: oven-sh/bun#5091
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants