Skip to content

Node setup

Point the Sentry Node 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/node as you do today. Initialise it before the rest of your app loads.

import * as Sentry from "@sentry/node";
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.

@sentry/node 11.13.0 on Node 22.23.5: unhandled exceptions, unhandled rejections, captured messages and session aggregates.