@overcastsre/node
v2.0.0
Published
Overcast SRE monitoring SDK for Node.js — one-line install, captures everything.
Downloads
388
Maintainers
Readme
@overcast/node
Overcast SRE monitoring SDK for Node.js. One install, one line — captures everything.
Install
npm install @overcast/nodeUsage
require('@overcast/node').init({ apiKey: 'oc_...', serviceName: 'my-api' });That's it. The SDK automatically captures:
- All
console.log/info/debug/warn/erroroutput - Uncaught exceptions and unhandled promise rejections
- All outgoing HTTP/HTTPS requests (status, latency, request/response bodies)
- Process warnings and deprecations
- Memory usage, event-loop lag, handle leaks
- Stack traces with full context
Express Middleware (optional)
const overcast = require('@overcast/node');
overcast.init({ apiKey: 'oc_...' });
const app = express();
app.use(overcast.middleware()); // Captures all incoming requestsOptions
| Option | Default | Description |
|---|---|---|
| apiKey | required | Your Overcast API key |
| serviceName | 'node-app' | Service name in the dashboard |
| environment | NODE_ENV | 'production', 'staging', etc. |
| encryptPayload | false | AES-256-GCM encrypt payloads |
| encryptionKey | '' | 32-byte hex key for encryption |
| sanitize | true | Redact PII (passwords, tokens, etc.) |
| batchSize | 50 | Logs per batch |
| flushInterval | 5000 | Flush interval in ms |
