UNPKG

@opentelemetry/instrumentation

Version:
26 lines 1.11 kB
import type * as types from '../../types'; import type { massWrap, massUnwrap } from '../../shimmer'; import { wrap, unwrap } from '../../shimmer'; import { InstrumentationAbstract } from '../../instrumentation'; import type { InstrumentationConfig } from '../../types'; /** * Base abstract class for instrumenting node plugins */ export declare abstract class InstrumentationBase<ConfigType extends InstrumentationConfig = InstrumentationConfig> extends InstrumentationAbstract<ConfigType> implements types.Instrumentation<ConfigType> { private _modules; private _hooks; private _requireInTheMiddleSingleton; private _enabled; constructor(instrumentationName: string, instrumentationVersion: string, config: ConfigType); protected _wrap: typeof wrap; protected _unwrap: typeof unwrap; protected _massWrap: typeof massWrap; protected _massUnwrap: typeof massUnwrap; private _warnOnPreloadedModules; private _extractPackageVersion; private _onRequire; enable(): void; disable(): void; isEnabled(): boolean; } //# sourceMappingURL=instrumentation.d.ts.map