Skip to content

Commit

Permalink
better comment wording
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Pichler <[email protected]>
  • Loading branch information
trentm and pichlermarc authored Oct 12, 2023
1 parent daf7bbc commit 6ce02ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ export class RedisInstrumentation extends InstrumentationBase<any> {
// 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');

Check warning on line 176 in plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts

View check run for this annotation

Codecov / codecov/patch

plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts#L176

Added line #L176 was not covered by tests
Expand Down

0 comments on commit 6ce02ba

Please sign in to comment.