aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/opentelemetry/tracing.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-11-15 13:27:46 +0100
committerChocobozzz <me@florianbigard.com>2022-11-15 13:48:51 +0100
commit077600e03774203c57ba7e8b122bd18faa3e51e6 (patch)
tree6052953db5c68bbc67fbb89854858100afcb5c05 /server/lib/opentelemetry/tracing.ts
parent59a643aa5cf6775d27dfcc147b19c4537292d53c (diff)
downloadPeerTube-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.ts4
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'
6import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express' 6import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express'
7import FsInstrumentation from '@opentelemetry/instrumentation-fs' 7import FsInstrumentation from '@opentelemetry/instrumentation-fs'
8import { HttpInstrumentation } from '@opentelemetry/instrumentation-http' 8import { HttpInstrumentation } from '@opentelemetry/instrumentation-http'
9import { IORedisInstrumentation } from '@opentelemetry/instrumentation-ioredis'
9import { PgInstrumentation } from '@opentelemetry/instrumentation-pg' 10import { PgInstrumentation } from '@opentelemetry/instrumentation-pg'
10import { RedisInstrumentation } from '@opentelemetry/instrumentation-redis-4'
11import { Resource } from '@opentelemetry/resources' 11import { Resource } from '@opentelemetry/resources'
12import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base' 12import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base'
13import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node' 13import { 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 }