/** * 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: * * ```sh * npm install @opentelemetry/instrumentation-http @opentelemetry/instrumentation-undici * ``` * * @returns an array of instrumentation instances ready to pass to {@link import('./setupOtel.js').setupOtel} * * @example * ```ts * import { setupOtel } from '@cleverbrush/otel'; * import { outboundHttpInstrumentations } from '@cleverbrush/otel/instrumentations'; * * setupOtel({ * serviceName: 'todo-backend', * instrumentations: outboundHttpInstrumentations(), * }); * ``` */ export declare function outboundHttpInstrumentations(): unknown[]; /** * 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. * * @returns an array containing one instrumentation instance, or empty if the package is not installed * * @example * ```ts * import { setupOtel } from '@cleverbrush/otel'; * import { runtimeMetrics } from '@cleverbrush/otel/instrumentations'; * * setupOtel({ * serviceName: 'todo-backend', * instrumentations: runtimeMetrics(), * }); * ``` */ export declare function runtimeMetrics(): unknown[];