Node

Package insider-node on npm. One footprint per HTTP request. Nothing is retried in v1.

Install

npm install insider-node

Initialize

import * as insider from "insider-node";

insider.init({
  dsn: process.env.INSIDER_DSN,
  environment: process.env.INSIDER_ENVIRONMENT || "production",
  release: process.env.INSIDER_RELEASE,
});

No DSN means the SDK is off.

Manual capture

These helpers are for workers and scripts. During an Express request they fold into that request's footprint instead of sending a second one.

insider.captureException(err);
insider.captureLog("order created", { level: "info", source: "checkout" });
insider.capturePerf("job.reindex", 120.5);
await insider.flush();

HTTP capture for Express is on the Express page.