From 6ce02ba15aacbbcca02b3083ec2165720f1adad7 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 12 Oct 2023 08:06:52 -0700 Subject: [PATCH] better comment wording Co-authored-by: Marc Pichler --- .../src/instrumentation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts b/plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts index ee77b252b1..aa30a98822 100644 --- a/plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts +++ b/plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts @@ -169,7 +169,8 @@ export class RedisInstrumentation extends InstrumentationBase { // In some @redis/client versions 'multi' is a method. In later // versions, as of https://github.com/redis/node-redis/pull/2324, // 'MULTI' is a method and 'multi' is a property defined in the - // constructor that points to 'MULTI'. + // constructor that points to 'MULTI', and therefore it will not + // be defined on the prototype. if (redisClientPrototype?.multi) { if (isWrapped(redisClientPrototype?.multi)) { this._unwrap(redisClientPrototype, 'multi');