ErrorDX

JavaScript (browser)

Capture frontend errors and performance data.

Install the Sentry browser SDK and configure your DSN.

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

Sentry.init({
  dsn: "http://<publicKey>@localhost:3000/<projectId>",
  tracesSampleRate: 1.0,
});

Trigger a test error:

throw new Error("TryOpenTrace frontend test");

Events should appear in the Issues view within a few seconds.