Overview
Shared Sentry.init options: DSN, environment, and release.
Official @sentry/browser, @sentry/node, or @sentry/nextjs. Point dsn at your Epure instance. Fixture-proven JS line: 7.120.0.
Which JavaScript package do I install?
| If you ship… | Package | Guide |
|---|---|---|
| React, Vue, Angular, Svelte, Vite/CRA SPA, static HTML | @sentry/browser | Browser |
| Express, Fastify, NestJS, Koa, Hono, Node workers/CLIs | @sentry/node | Node.js |
| Next.js (client + server + edge) | @sentry/nextjs | Next.js |
Full framework map (Python, Go, Ruby, PHP, Java, .NET too): Pick your SDK.
How do I instrument JavaScript?
Install the package above, set dsn to your Epure host, and set traces, profiles, and replay sample rates to 0.
What is a DSN for JavaScript?
Copy it from Settings → SDK connection. The DSN is ingest-only: public key, host, project id.
http://{public_key}@{host}:{port}/{project_id}Local compose host port defaults to 8080 (EPURE_PORT in .env). Revoked keys return 403. Session cookies do not work on ingest.
Which Sentry.init options matter?
import * as Sentry from "@sentry/browser";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: "production",
release: "my-app@1.0.0",
tracesSampleRate: 0,
profilesSampleRate: 0,
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 0,
});| Option | Role |
|---|---|
dsn | Required. Host + public key + project id |
environment | Event tag; filterable in the dashboard |
release | Version for regressions and sourcemap matching |
tracesSampleRate | Set 0. Transactions discarded |
profilesSampleRate | Set 0. Profiles discarded |
| Replay sample rates | Set 0 (browser). Replay discarded |
Fixture-proven line is 7.120.0. For Sentry JS v8+, also set enableTracing: false when the option exists.
How do I capture exceptions?
| Call | When |
|---|---|
| Uncaught errors | Default after init |
Sentry.captureException(error) | Handled failures you still want grouped |
Sentry.captureMessage(msg, level?) | Non-exception signals |
No @epure/* package.
How do I attach source maps?
Upload JS/TS .map files per release: Source maps. Match the same release string in Sentry.init and the upload.
Next
- Pick your SDK: framework to package table
- Browser · Node · Next.js
- Python · Go · Ruby · PHP · Java · .NET
FAQ
Do I install an Epure JavaScript SDK?
Are traces and replay stored?
No. Transaction, replay, and profile items are discarded on ingest, so set those sample rates to 0. Exception events plus breadcrumbs stay. Upload JS/TS sourcemaps to demangle stacks. See Welcome.