Skip to content

[v7] Bun Global Unhandled Handlers#11959

Merged
HazAT merged 1 commit intov7from
bun-v7-globalhandlers
May 10, 2024
Merged

[v7] Bun Global Unhandled Handlers#11959
HazAT merged 1 commit intov7from
bun-v7-globalhandlers

Conversation

@HazAT
Copy link
Copy Markdown
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 requested review from a team as code owners May 9, 2024 05:45
@HazAT HazAT changed the base branch from develop to v7 May 9, 2024 05:48
@HazAT HazAT merged commit 75e5501 into v7 May 10, 2024
@HazAT HazAT deleted the bun-v7-globalhandlers branch May 10, 2024 07:35
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