aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/opentelemetry/tracing.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-28 10:56:05 +0200
committerChocobozzz <me@florianbigard.com>2022-07-28 10:56:05 +0200
commitce6b3765a2d31b9b90b7a1435e7180b91cba57b3 (patch)
tree15cb77864dcd9c0975043b36ae04bb4f163013c0 /server/lib/opentelemetry/tracing.ts
parent8224e13d3b59ff4420d6c323c95d829ca014a442 (diff)
downloadPeerTube-ce6b3765a2d31b9b90b7a1435e7180b91cba57b3.tar.gz
PeerTube-ce6b3765a2d31b9b90b7a1435e7180b91cba57b3.tar.zst
PeerTube-ce6b3765a2d31b9b90b7a1435e7180b91cba57b3.zip
Add more tracing
Diffstat (limited to 'server/lib/opentelemetry/tracing.ts')
-rw-r--r--server/lib/opentelemetry/tracing.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/opentelemetry/tracing.ts b/server/lib/opentelemetry/tracing.ts
index 23764e9e4..252a3b664 100644
--- a/server/lib/opentelemetry/tracing.ts
+++ b/server/lib/opentelemetry/tracing.ts
@@ -1,3 +1,4 @@
1import { SequelizeInstrumentation } from 'opentelemetry-instrumentation-sequelize'
1import { diag, DiagLogLevel, trace } from '@opentelemetry/api' 2import { diag, DiagLogLevel, trace } from '@opentelemetry/api'
2import { JaegerExporter } from '@opentelemetry/exporter-jaeger' 3import { JaegerExporter } from '@opentelemetry/exporter-jaeger'
3import { registerInstrumentations } from '@opentelemetry/instrumentation' 4import { registerInstrumentations } from '@opentelemetry/instrumentation'
@@ -60,7 +61,8 @@ function registerOpentelemetryTracing () {
60 return [ cmdName, ...cmdArgs ].join(' ') 61 return [ cmdName, ...cmdArgs ].join(' ')
61 } 62 }
62 }), 63 }),
63 new FsInstrumentation() 64 new FsInstrumentation(),
65 new SequelizeInstrumentation()
64 ] 66 ]
65 }) 67 })
66 68