Every uncaught error, captured on throw.
Initialize the SDK once and every unhandled exception is collected with its stack trace, release, and environment. No try/catch scattered through your code.
import { bughq } from '@bughq/sdk'
bughq.init({
dsn: 'https://ingest.bughq.org/p_9f2c',
release: 'checkout@2.14.0',
environment: 'production',
})
// from here on, every uncaught error is captured,
// fingerprinted, and grouped into one issue
How it works
01
Install and init once
One init call wires up a global handler, so you do not wrap each call site by hand.
02
Errors are captured on throw
Uncaught exceptions and unhandled rejections are collected the moment they happen, with the full stack.
03
Context rides along
Release, environment, and request metadata attach automatically, so an error arrives with the facts you need.
One init
A single call sets up global capture across your whole app.
Full context
Stack trace, release, environment, and metadata on every event.
Any runtime
Server, edge, and browser code report through the same SDK.