@myrotvorets/opentelemetry-plugin-knex
Version:
OpenTelemetry knex automatic instrumentation package
12 lines (11 loc) • 520 B
TypeScript
import { InstrumentationBase, type InstrumentationConfig, type InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
export declare class KnexInstrumentation extends InstrumentationBase {
static readonly COMPONENT = "knex";
constructor(config?: InstrumentationConfig);
protected init(): InstrumentationModuleDefinition[];
private getClientPatches;
private static ensureParentSpan;
private readonly patchAddParentSpan;
private readonly patchQuery;
private createSpan;
}