PlatformsJavaScriptOverview

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…PackageGuide
React, Vue, Angular, Svelte, Vite/CRA SPA, static HTML@sentry/browserBrowser
Express, Fastify, NestJS, Koa, Hono, Node workers/CLIs@sentry/nodeNode.js
Next.js (client + server + edge)@sentry/nextjsNext.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,
});
OptionRole
dsnRequired. Host + public key + project id
environmentEvent tag; filterable in the dashboard
releaseVersion for regressions and sourcemap matching
tracesSampleRateSet 0. Transactions discarded
profilesSampleRateSet 0. Profiles discarded
Replay sample ratesSet 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?

CallWhen
Uncaught errorsDefault 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

Do I install an Epure JavaScript SDK?

No. Use official @sentry/browser, @sentry/node, or @sentry/nextjs and change only dsn. CI fixtures cover 7.120.0. Set traces, profiles, and replay sample rates to 0, since those item types are discarded. See Browser, Node, and Next.js.

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.