16 lines
731 B
TypeScript
16 lines
731 B
TypeScript
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
import { RedisInstrumentationConfig } from './types';
|
|
export declare class RedisInstrumentation extends InstrumentationBase {
|
|
static readonly COMPONENT = "redis";
|
|
protected _config: RedisInstrumentationConfig;
|
|
constructor(config?: RedisInstrumentationConfig);
|
|
setConfig(config?: RedisInstrumentationConfig): void;
|
|
protected init(): InstrumentationNodeModuleDefinition[];
|
|
/**
|
|
* Patch internal_send_command(...) to trace requests
|
|
*/
|
|
private _getPatchInternalSendCommand;
|
|
private _getPatchCreateClient;
|
|
private _getPatchCreateStream;
|
|
}
|
|
//# sourceMappingURL=instrumentation.d.ts.map
|