@dravyn/sentinel
v0.1.0
Published
Node.js SDK for Dravyn Sentinel - error tracking, performance monitoring, and security event capture.
Maintainers
Readme
@dravyn/sentinel
Node.js SDK for Dravyn Sentinel — application monitoring and security-event detection. Captures request timing, thrown errors, and manual log events, and ships them to your Sentinel ingestion API.
Install
npm install @dravyn/sentinelUsage
import { init, captureError } from "@dravyn/sentinel";
import { sentinelMiddleware } from "@dravyn/sentinel/express";
init({
apiKey: process.env.SENTINEL_API_KEY!,
projectId: "my-app",
ingestUrl: "https://sentinel.dravyn.it.com", // or your own ingestion API
});
app.use(sentinelMiddleware()); // auto-records one `request` event per response
try {
await chargeCard(order);
} catch (err) {
captureError(err, { orderId: order.id });
throw err;
}Delivery is best-effort and non-blocking — if the ingestion API is unreachable, events are dropped rather than crashing your app.
Full docs: https://dravyn.it.com/docs/dravyn-sentinel/
