Skip to content

Commit

Permalink
fix(instrumentation-redis-4): avoid crash from incorrect this._diag r…
Browse files Browse the repository at this point in the history
…ef (#2397)

Fixes: #2389
  • Loading branch information
trentm committed Aug 22, 2024
1 parent ca70bb9 commit de7a6cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export class RedisInstrumentation extends InstrumentationBase<RedisInstrumentati
return function patchedConnect(this: any): Promise<void> {
const options = this.options;

const attributes = getClientAttributes(this._diag, options);
const attributes = getClientAttributes(plugin._diag, options);

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

0 comments on commit de7a6cb

Please sign in to comment.