Add metrics to redirect service

This commit is contained in:
Eric Bailey
2026-03-23 16:33:09 -05:00
parent 7fd6f8f04b
commit 21ada5240b
5 changed files with 161 additions and 0 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()
}
}