Skip to content

Commit 1ddb268

Browse files
committed
Replace instrumentation-redis-4 with instrumentation-redis
1 parent 50dc02f commit 1ddb268

File tree

1 file changed

+3
-3
lines changed
  • packages/node/src/integrations/tracing

1 file changed

+3
-3
lines changed

packages/node/src/integrations/tracing/redis.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Span } from '@opentelemetry/api';
22
import type { RedisResponseCustomAttributeFunction } from '@opentelemetry/instrumentation-ioredis';
33
import { IORedisInstrumentation } from '@opentelemetry/instrumentation-ioredis';
4-
import { RedisInstrumentation } from '@opentelemetry/instrumentation-redis-4';
4+
import { RedisInstrumentation } from '@opentelemetry/instrumentation-redis';
55
import type { IntegrationFn } from '@sentry/core';
66
import {
77
defineIntegration,
@@ -81,7 +81,7 @@ const instrumentIORedis = generateInstrumentOnce('IORedis', () => {
8181
});
8282
});
8383

84-
const instrumentRedis4 = generateInstrumentOnce('Redis-4', () => {
84+
const instrumentRedisModule = generateInstrumentOnce('Redis', () => {
8585
return new RedisInstrumentation({
8686
responseHook: cacheResponseHook,
8787
});
@@ -91,7 +91,7 @@ const instrumentRedis4 = generateInstrumentOnce('Redis-4', () => {
9191
export const instrumentRedis = Object.assign(
9292
(): void => {
9393
instrumentIORedis();
94-
instrumentRedis4();
94+
instrumentRedisModule();
9595

9696
// todo: implement them gradually
9797
// new LegacyRedisInstrumentation({}),

0 commit comments

Comments
 (0)