library · inferred from evidence
@sentry/node
The Node.js SDK for Sentry, version 11.
- Sentry: v11 SDK against old self-hosted silently misbehaves
The JS SDK v11 needs self-hosted Sentry 26.4.2 or newer. Older servers accept the connection but mishandle the new span-streaming payloads.
- Sentry Node.js ESM vs CJS: match the instrument file to the module system
ESM and CommonJS need different instrument files and preload flags. Pick the wrong pair and the SDK loads too late or not at all.
- Sentry Express: skip the old two-middleware dance
Modern @sentry/node captures Express errors automatically through expressIntegration. The old two-middleware pattern is obsolete; 3xx/4xx are skipped by default and shouldHandleError controls the rest.