npm.io
0.0.1-canary.0 • Published 2 weeks ago

@interfere/node

Licence
MIT
Version
0.0.1-canary.0
Deps
9
Size
56 kB
Vulns
0
Weekly
0

@interfere/node

Status: canary. Pre-1.0 API, expect breaking changes. Pin to a specific 10.0.0-canary.N in CI.

Node.js SDK for Interfere.

Install

bun add @interfere/node

Usage

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_API_KEY in the environment. Full docs at https://interfere.com/docs.

Keywords