diff options
Diffstat (limited to 'server/lib/opentelemetry/tracing.ts')
-rw-r--r-- | server/lib/opentelemetry/tracing.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/opentelemetry/tracing.ts b/server/lib/opentelemetry/tracing.ts index b1c3bd173..9a81680b2 100644 --- a/server/lib/opentelemetry/tracing.ts +++ b/server/lib/opentelemetry/tracing.ts | |||
@@ -6,8 +6,8 @@ import { DnsInstrumentation } from '@opentelemetry/instrumentation-dns' | |||
6 | import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express' | 6 | import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express' |
7 | import FsInstrumentation from '@opentelemetry/instrumentation-fs' | 7 | import FsInstrumentation from '@opentelemetry/instrumentation-fs' |
8 | import { HttpInstrumentation } from '@opentelemetry/instrumentation-http' | 8 | import { HttpInstrumentation } from '@opentelemetry/instrumentation-http' |
9 | import { IORedisInstrumentation } from '@opentelemetry/instrumentation-ioredis' | ||
9 | import { PgInstrumentation } from '@opentelemetry/instrumentation-pg' | 10 | import { PgInstrumentation } from '@opentelemetry/instrumentation-pg' |
10 | import { RedisInstrumentation } from '@opentelemetry/instrumentation-redis-4' | ||
11 | import { Resource } from '@opentelemetry/resources' | 11 | import { Resource } from '@opentelemetry/resources' |
12 | import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base' | 12 | import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base' |
13 | import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node' | 13 | import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node' |
@@ -58,7 +58,7 @@ function registerOpentelemetryTracing () { | |||
58 | new DnsInstrumentation(), | 58 | new DnsInstrumentation(), |
59 | new HttpInstrumentation(), | 59 | new HttpInstrumentation(), |
60 | new ExpressInstrumentation(), | 60 | new ExpressInstrumentation(), |
61 | new RedisInstrumentation({ | 61 | new IORedisInstrumentation({ |
62 | dbStatementSerializer: function (cmdName, cmdArgs) { | 62 | dbStatementSerializer: function (cmdName, cmdArgs) { |
63 | return [ cmdName, ...cmdArgs ].join(' ') | 63 | return [ cmdName, ...cmdArgs ].join(' ') |
64 | } | 64 | } |