@opentelemetry/instrumentation-redis-4
Version:
OpenTelemetry instrumentation for `redis` v4 database client for Redis
19 lines • 930 B
TypeScript
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { RedisInstrumentationConfig } from './types';
export declare class RedisInstrumentation extends InstrumentationBase<RedisInstrumentationConfig> {
static readonly COMPONENT = "redis";
constructor(config?: RedisInstrumentationConfig);
setConfig(config?: RedisInstrumentationConfig): void;
protected init(): InstrumentationNodeModuleDefinition[];
private _getInstrumentationNodeModuleDefinition;
private _getPatchExtendWithCommands;
private _getPatchMultiCommandsExec;
private _getPatchMultiCommandsAddCommand;
private _getPatchRedisClientMulti;
private _getPatchRedisClientSendCommand;
private _getPatchedClientConnect;
private _traceClientCommand;
private _endSpansWithRedisReplies;
private _endSpanWithResponse;
}
//# sourceMappingURL=instrumentation.d.ts.map