From de7a6cb77e643ed0de82e514510089fba5ae0405 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 22 Aug 2024 08:43:05 -0700 Subject: [PATCH] fix(instrumentation-redis-4): avoid crash from incorrect this._diag ref (#2397) Fixes: #2389 --- .../src/instrumentation.ts | 2 +- 1 file changed, 1 insertion(+), 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 d1459da8ff..b68a312a16 100644 --- a/plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts +++ b/plugins/node/opentelemetry-instrumentation-redis-4/src/instrumentation.ts @@ -335,7 +335,7 @@ export class RedisInstrumentation extends InstrumentationBase { const options = this.options; - const attributes = getClientAttributes(this._diag, options); + const attributes = getClientAttributes(plugin._diag, options); const span = plugin.tracer.startSpan( `${RedisInstrumentation.COMPONENT}-connect`,