Add metrics to redirect service (#10112)

This commit is contained in:
Eric Bailey
2026-03-24 08:45:08 -05:00
committed by GitHub
parent 3866142ccd
commit 5a6942025c
10 changed files with 366 additions and 12 deletions
+2
View File
@@ -36,6 +36,7 @@ export class LinkService {
}
async start() {
this.ctx.metrics.start()
this.server = this.app.listen(this.ctx.cfg.service.port)
this.server.keepAliveTimeout = 90000
this.terminator = createHttpTerminator({server: this.server})
@@ -46,5 +47,6 @@ export class LinkService {
this.ctx.abortController.abort()
await this.terminator?.terminate()
await this.ctx.db.close()
this.ctx.metrics.stop()
}
}