@@ -17,7 +17,7 @@ import { InstrumentationBase } from '@opentelemetry/instrumentation';
1717import { RedisInstrumentationConfig } from './types' ;
1818/** @knipignore */
1919import { PACKAGE_NAME , PACKAGE_VERSION } from './version' ;
20- import { RedisInstrumentationV2_3 } from './v2-3 /instrumentation' ;
20+ import { RedisInstrumentationV2_V3 } from './v2-v3 /instrumentation' ;
2121import { TracerProvider } from '@opentelemetry/api' ;
2222import { RedisInstrumentationV4 } from './v4/instrumentation' ;
2323
@@ -27,7 +27,7 @@ const DEFAULT_CONFIG: RedisInstrumentationConfig = {
2727
2828// Wrapper RedisInstrumentation that address all supported versions
2929export class RedisInstrumentation extends InstrumentationBase < RedisInstrumentationConfig > {
30- private instrumentationV2_3 : RedisInstrumentationV2_3 ;
30+ private instrumentationV2_V3 : RedisInstrumentationV2_V3 ;
3131 private instrumentationV4 : RedisInstrumentationV4 ;
3232
3333 // this is used to bypass a flaw in the base class constructor, which is calling
@@ -38,7 +38,7 @@ export class RedisInstrumentation extends InstrumentationBase<RedisInstrumentati
3838 const resolvedConfig = { ...DEFAULT_CONFIG , ...config } ;
3939 super ( PACKAGE_NAME , PACKAGE_VERSION , resolvedConfig ) ;
4040
41- this . instrumentationV2_3 = new RedisInstrumentationV2_3 ( this . getConfig ( ) ) ;
41+ this . instrumentationV2_V3 = new RedisInstrumentationV2_V3 ( this . getConfig ( ) ) ;
4242 this . instrumentationV4 = new RedisInstrumentationV4 ( this . getConfig ( ) ) ;
4343 this . initialized = true ;
4444 }
@@ -50,7 +50,7 @@ export class RedisInstrumentation extends InstrumentationBase<RedisInstrumentati
5050 return ;
5151 }
5252
53- this . instrumentationV2_3 . setConfig ( newConfig ) ;
53+ this . instrumentationV2_V3 . setConfig ( newConfig ) ;
5454 this . instrumentationV4 . setConfig ( newConfig ) ;
5555 }
5656
@@ -61,7 +61,7 @@ export class RedisInstrumentation extends InstrumentationBase<RedisInstrumentati
6161 if ( ! this . initialized ) {
6262 return ;
6363 }
64- this . instrumentationV2_3 . setTracerProvider ( tracerProvider ) ;
64+ this . instrumentationV2_V3 . setTracerProvider ( tracerProvider ) ;
6565 this . instrumentationV4 . setTracerProvider ( tracerProvider ) ;
6666 }
6767
@@ -70,7 +70,7 @@ export class RedisInstrumentation extends InstrumentationBase<RedisInstrumentati
7070 if ( ! this . initialized ) {
7171 return ;
7272 }
73- this . instrumentationV2_3 . enable ( ) ;
73+ this . instrumentationV2_V3 . enable ( ) ;
7474 this . instrumentationV4 . enable ( ) ;
7575 }
7676
@@ -79,7 +79,7 @@ export class RedisInstrumentation extends InstrumentationBase<RedisInstrumentati
7979 if ( ! this . initialized ) {
8080 return ;
8181 }
82- this . instrumentationV2_3 . disable ( ) ;
82+ this . instrumentationV2_V3 . disable ( ) ;
8383 this . instrumentationV4 . disable ( ) ;
8484 }
8585}
0 commit comments