JavaScript (browser) setup
Point the Sentry JavaScript browser SDK at a Supermetry app project by changing the DSN.
Create an app project, copy its DSN from Settings, Installation, and pass it to the Sentry SDK. Nothing else changes.
Install the SDK package @sentry/browser as you do today.
import * as Sentry from "@sentry/browser";
Sentry.init({ dsn: "https://<key>@your-supermetry.example/<id>", release: "1.0.0",});Always set release: without it the SDK sends no sessions, so crash-free rates stay empty.
Tested version
Section titled “Tested version”@sentry/browser 11.13.0, driving a page in headless Chromium (Playwright 1.63.0): unhandled errors, unhandled rejections, breadcrumbs and sessions. Create a DSN key with allowed origins, and upload source maps for readable frames.