@interfere/node
v0.1.1
Published
Node.js SDK for Interfere. Error tracking and OTel instrumentation for any Node server.
Maintainers
Readme
@interfere/node
Status: canary. Pre-1.0 API, expect breaking changes. Pin to a specific
10.0.0-canary.Nin CI.
Node.js SDK for Interfere.
Install
bun add @interfere/nodeUsage
import { init, captureError, withSpan } from "@interfere/node";
await init({ serviceName: "checkout-worker" });
await withSpan("checkout.fulfill", () => fulfill(order));
try {
await doWork();
} catch (err) {
captureError(err);
throw err;
}Set INTERFERE_PUBLIC_KEY to your surface's regional publishable key (interfere_pub_us_* or interfere_pub_eu_*). Full docs at https://interfere.com/docs.
