@opentelemetry/instrumentation-knex
Version:
OpenTelemetry instrumentation for `knex` database SQL query builder
13 lines • 714 B
TypeScript
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { KnexInstrumentationConfig } from './types';
export declare class KnexInstrumentation extends InstrumentationBase<KnexInstrumentationConfig> {
constructor(config?: KnexInstrumentationConfig);
setConfig(config?: KnexInstrumentationConfig): void;
init(): InstrumentationNodeModuleDefinition;
private getRunnerNodeModuleFileInstrumentation;
private getClientNodeModuleFileInstrumentation;
private createQueryWrapper;
private storeContext;
ensureWrapped(obj: any, methodName: string, wrapper: (original: any) => any): void;
}
//# sourceMappingURL=instrumentation.d.ts.map