aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-05 10:19:51 +0100
committerChocobozzz <me@florianbigard.com>2023-01-05 10:19:51 +0100
commit5847724474b9a1d94679e347ca2c24d2b10d0b20 (patch)
tree44ffd0f83b2d6996c8a454271e3f5a56ff7a2c2b /server.ts
parent60bab7b540de3709f3392a0ea964524c13c7e404 (diff)
downloadPeerTube-5847724474b9a1d94679e347ca2c24d2b10d0b20.tar.gz
PeerTube-5847724474b9a1d94679e347ca2c24d2b10d0b20.tar.zst
PeerTube-5847724474b9a1d94679e347ca2c24d2b10d0b20.zip
Add tracker opentelemtry metrics
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server.ts b/server.ts
index dd595e951..f6a153fb7 100644
--- a/server.ts
+++ b/server.ts
@@ -279,7 +279,7 @@ app.use((err, _req, res: express.Response, _next) => {
279 }) 279 })
280}) 280})
281 281
282const server = createWebsocketTrackerServer(app) 282const { 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