diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-28 10:56:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-28 10:56:05 +0200 |
commit | ce6b3765a2d31b9b90b7a1435e7180b91cba57b3 (patch) | |
tree | 15cb77864dcd9c0975043b36ae04bb4f163013c0 /server/lib/opentelemetry | |
parent | 8224e13d3b59ff4420d6c323c95d829ca014a442 (diff) | |
download | PeerTube-ce6b3765a2d31b9b90b7a1435e7180b91cba57b3.tar.gz PeerTube-ce6b3765a2d31b9b90b7a1435e7180b91cba57b3.tar.zst PeerTube-ce6b3765a2d31b9b90b7a1435e7180b91cba57b3.zip |
Add more tracing
Diffstat (limited to 'server/lib/opentelemetry')
-rw-r--r-- | server/lib/opentelemetry/tracing.ts | 4 |
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 @@ | |||
1 | import { SequelizeInstrumentation } from 'opentelemetry-instrumentation-sequelize' | ||
1 | import { diag, DiagLogLevel, trace } from '@opentelemetry/api' | 2 | import { diag, DiagLogLevel, trace } from '@opentelemetry/api' |
2 | import { JaegerExporter } from '@opentelemetry/exporter-jaeger' | 3 | import { JaegerExporter } from '@opentelemetry/exporter-jaeger' |
3 | import { registerInstrumentations } from '@opentelemetry/instrumentation' | 4 | import { 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 | ||