Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
26 lines
917 B
Plaintext
26 lines
917 B
Plaintext
import { InstrumentationBase } from '@opentelemetry/instrumentation';
|
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
import { InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
import { registerInstrumentations } from '@opentelemetry/instrumentation';
|
|
import { TracerProvider } from '@opentelemetry/api';
|
|
|
|
declare type Config = PrismaInstrumentationConfig & InstrumentationConfig;
|
|
|
|
export declare class PrismaInstrumentation extends InstrumentationBase {
|
|
private tracerProvider;
|
|
constructor(config?: Config);
|
|
setTracerProvider(tracerProvider: TracerProvider): void;
|
|
init(): InstrumentationNodeModuleDefinition[];
|
|
enable(): void;
|
|
disable(): void;
|
|
isEnabled(): boolean;
|
|
}
|
|
|
|
declare interface PrismaInstrumentationConfig {
|
|
ignoreSpanTypes?: (string | RegExp)[];
|
|
}
|
|
|
|
export { registerInstrumentations }
|
|
|
|
export { }
|