Node SDK
Package: @invince/node.
npm install @invince/node@0.1.2
import * as Invince from '@invince/node';
Invince.init({
ingestKey: 'YOUR_INGEST_KEY',
endpoint: 'https://invince.dev/api/ingest/errors',
environment: 'production',
});
The client posts to /api/ingest/errors with schemaVersion: 1. Performance samples and agent traces use sibling ingest routes derived from that endpoint. Optional traceId on init is copied onto error and performance events for the Traces page.
Call await flush() before a process exits. close() flushes then removes listeners. sampleRate is 0–1 (default 1). Transport failures call onTransportError and do not crash the app.
See Agent traces for startAgentTrace(). Example: packages/node/examples/crash.mjs.