Libraries
    Preparing search index...
    • Returns instrumentations for outbound HTTP traffic — Node http/https (covers node-fetch etc.) and undici (covers global fetch).

      Both packages are declared as optional peer dependencies of @cleverbrush/otel. Install them in the host project to use:

      npm install @opentelemetry/instrumentation-http @opentelemetry/instrumentation-undici
      

      Returns unknown[]

      an array of instrumentation instances ready to pass to import('./setupOtel.js').setupOtel

      import { setupOtel } from '@cleverbrush/otel';
      import { outboundHttpInstrumentations } from '@cleverbrush/otel/instrumentations';

      setupOtel({
      serviceName: 'todo-backend',
      instrumentations: outboundHttpInstrumentations(),
      });