Skip to content

Commit de7a6cb

Browse files
authored
fix(instrumentation-redis-4): avoid crash from incorrect this._diag ref (#2397)
Fixes: #2389
1 parent ca70bb9 commit de7a6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export class RedisInstrumentation extends InstrumentationBase<RedisInstrumentati
335335
return function patchedConnect(this: any): Promise<void> {
336336
const options = this.options;
337337

338-
const attributes = getClientAttributes(this._diag, options);
338+
const attributes = getClientAttributes(plugin._diag, options);
339339

340340
const span = plugin.tracer.startSpan(
341341
`${RedisInstrumentation.COMPONENT}-connect`,

0 commit comments

Comments
 (0)