UNPKG

535 BTypeScriptView Raw
1import { type Instrumentation } from '@opentelemetry/instrumentation';
2/** Exported only for tests. */
3export declare const INSTRUMENTED: Record<string, Instrumentation>;
4/**
5 * Instrument an OpenTelemetry instrumentation once.
6 * This will skip running instrumentation again if it was already instrumented.
7 */
8export declare function generateInstrumentOnce<Options = unknown>(name: string, creator: (options?: Options) => Instrumentation): ((options?: Options) => void) & {
9 id: string;
10};
11//# sourceMappingURL=instrument.d.ts.map
\No newline at end of file