Node.js ·Express ·Next.js API Routes ·NestJS
@foam-ai/node-opentelemetry
Server-side tracing, error capture, and OpenTelemetry instrumentation for Node.js.
$ npm install @foam-ai/node-opentelemetry
import { init, captureException } from '@foam-ai/node-opentelemetry';
init({
apiKey: process.env.FOAM_API_KEY,
serviceName: 'my-api',
isProduction: process.env.NODE_ENV === 'production',
});