Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[v8] Bun Global Unhandled Handlers #11960

Merged
merged 2 commits into from
May 10, 2024
Merged

[v8] Bun Global Unhandled Handlers #11960

merged 2 commits into from
May 10, 2024

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
67 checks passed
@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