diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-15 13:27:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-15 13:48:51 +0100 |
commit | 077600e03774203c57ba7e8b122bd18faa3e51e6 (patch) | |
tree | 6052953db5c68bbc67fbb89854858100afcb5c05 /server/lib/opentelemetry/tracing.ts | |
parent | 59a643aa5cf6775d27dfcc147b19c4537292d53c (diff) | |
download | PeerTube-077600e03774203c57ba7e8b122bd18faa3e51e6.tar.gz PeerTube-077600e03774203c57ba7e8b122bd18faa3e51e6.tar.zst PeerTube-077600e03774203c57ba7e8b122bd18faa3e51e6.zip |
Upgrade server dependencies
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 | } |