@opentelemetry/instrumentation-dataloader
Version:
OpenTelemetry instrumentation for `dataloader` data fetching layer
21 lines • 850 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 _wrapBatchLoadFn;
private _getPatchedConstructor;
private _patchLoad;
private _getPatchedLoad;
private _patchLoadMany;
private _getPatchedLoadMany;
private _patchPrime;
private _getPatchedPrime;
private _patchClear;
private _getPatchedClear;
private _patchClearAll;
private _getPatchedClearAll;
}
//# sourceMappingURL=instrumentation.d.ts.map