Libraries v5.2.0
    Preparing search index...
    • Returns the Node.js runtime metrics instrumentation, which emits basic process gauges (event loop lag, GC, heap size).

      Requires @opentelemetry/instrumentation-runtime-node to be installed in the host project.

      Failures warn by default; use strict to validate startup, or onDiagnostic to handle safe failure information. Resolve workspace peers with resolveFrom.

      Parameters

      Returns unknown[]

      one instrumentation, or an empty array with a failure diagnostic

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

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