diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-05 10:19:51 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-05 10:19:51 +0100 |
commit | 5847724474b9a1d94679e347ca2c24d2b10d0b20 (patch) | |
tree | 44ffd0f83b2d6996c8a454271e3f5a56ff7a2c2b /server.ts | |
parent | 60bab7b540de3709f3392a0ea964524c13c7e404 (diff) | |
download | PeerTube-5847724474b9a1d94679e347ca2c24d2b10d0b20.tar.gz PeerTube-5847724474b9a1d94679e347ca2c24d2b10d0b20.tar.zst PeerTube-5847724474b9a1d94679e347ca2c24d2b10d0b20.zip |
Add tracker opentelemtry metrics
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -279,7 +279,7 @@ app.use((err, _req, res: express.Response, _next) => { | |||
279 | }) | 279 | }) |
280 | }) | 280 | }) |
281 | 281 | ||
282 | const server = createWebsocketTrackerServer(app) | 282 | const { server, trackerServer } = createWebsocketTrackerServer(app) |
283 | 283 | ||
284 | // ----------- Run ----------- | 284 | // ----------- Run ----------- |
285 | 285 | ||
@@ -328,7 +328,8 @@ async function startApplication () { | |||
328 | VideoChannelSyncLatestScheduler.Instance.enable() | 328 | VideoChannelSyncLatestScheduler.Instance.enable() |
329 | VideoViewsBufferScheduler.Instance.enable() | 329 | VideoViewsBufferScheduler.Instance.enable() |
330 | GeoIPUpdateScheduler.Instance.enable() | 330 | GeoIPUpdateScheduler.Instance.enable() |
331 | OpenTelemetryMetrics.Instance.registerMetrics() | 331 | |
332 | OpenTelemetryMetrics.Instance.registerMetrics({ trackerServer }) | ||
332 | 333 | ||
333 | PluginManager.Instance.init(server) | 334 | PluginManager.Instance.init(server) |
334 | // Before PeerTubeSocket init | 335 | // Before PeerTubeSocket init |