UNPKG

@myrotvorets/opentelemetry-plugin-knex

Version:
12 lines (11 loc) 520 B
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; }