← All platforms

Bun error tracking

Bun can get your app running quickly. When it breaks, keep the report close. The Sentry Bun SDK sends your errors to Telebugs on your server.

~/hoofnotes  bun add @sentry/bun
~/hoofnotes  nvim instrument.ts
import * as Sentry from "@sentry/bun";
Sentry.init({
// Copy the complete Telebugs DSN, key and path included.
dsn: "YOUR_TELEBUGS_DSN",
});
~/hoofnotes  bun --preload ./instrument.ts src/index.ts

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep @sentry/bun and change its destination to your Telebugs DSN. Your error reports stay on your server. You don’t need a Sentry account.

Is there a Bun SDK?

Yes. Sentry provides a Bun package for the runtime. Uncaught exceptions and unhandled rejections can go to Telebugs without pretending your app runs on Node.js.

Will I recognize my source code?

Yes. Give Telebugs the matching source maps and it can show your original files and line numbers instead of a minified backtrace.