Skip to main content
@interfere/node captures errors and custom spans from Node.js processes. For NestJS or Next.js, use the NestJS or Next.js integration.

Install

Set INTERFERE_PUBLIC_KEY to the public key from your surface.

Initialize

Call init() before the work you want to capture:
Repeated initialization does not create additional providers. Without a public key, the SDK logs a warning and stays disabled.

Capture handled errors and spans

The SDK installs handlers for uncaught exceptions and unhandled rejections by default. Set captureUncaughtException: false or captureUnhandledRejection: false when your application owns those handlers. The uncaught-exception handler flushes telemetry and exits the process.

Configuration

Releases and shutdown

Use the TypeScript SDK to publish release metadata and source maps from a custom build pipeline. Build and runtime must use the same commit SHA. Set INTERFERE_SOURCE_ID in both when git metadata is unavailable. For a short-lived process, await flush() before it exits. Use close() when shutting down the SDK and its provider: