@opentelemetry/instrumentation-dataloader
Version:
OpenTelemetry instrumentation for `dataloader` data fetching layer
14 lines • 649 B
TypeScript
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { DataloaderInstrumentationConfig } from './types';
export declare class DataloaderInstrumentation extends InstrumentationBase<DataloaderInstrumentationConfig> {
constructor(config?: DataloaderInstrumentationConfig);
protected init(): InstrumentationNodeModuleDefinition[];
private shouldCreateSpans;
private getSpanName;
private _getPatchedConstructor;
private _patchLoad;
private _getPatchedLoad;
private _patchLoadMany;
private _getPatchedLoadMany;
}
//# sourceMappingURL=instrumentation.d.ts.map