@mojaloop/central-services-metrics
Advanced tools
Comparing version 12.2.0 to 12.2.1
@@ -219,3 +219,3 @@ /***** | ||
var _a = _this.getOptions(), _b = _a.maxConnections, maxConnections = _b === void 0 ? 0 : _b, _c = _a.maxRequestsPending, maxRequestsPending = _c === void 0 ? 0 : _c; | ||
if ((maxConnections > 0 || maxRequestsPending > 0) && request.path === '/ready') { | ||
if ((maxConnections > 0 || maxRequestsPending > 0) && request.path === '/health') { | ||
if (maxConnections > 0 && connections >= maxConnections) { | ||
@@ -228,3 +228,5 @@ return h.response('Max connections reached').code(503).takeover(); | ||
} | ||
if (['/metrics', '/health', '/ready'].includes(request.path)) | ||
if (request.path === '/live') | ||
return h.response('OK').code(200).takeover(); | ||
if (['/metrics', '/health'].includes(request.path)) | ||
return h.continue; | ||
@@ -236,3 +238,3 @@ requests++; | ||
server.events.on('response', function (request) { | ||
if (['/metrics', '/health', '/ready'].includes(request.path)) | ||
if (['/metrics', '/health', '/live'].includes(request.path)) | ||
return; | ||
@@ -239,0 +241,0 @@ requests--; |
{ | ||
"name": "@mojaloop/central-services-metrics", | ||
"version": "12.2.0", | ||
"version": "12.2.1", | ||
"description": "Shared code for metrics generation", | ||
@@ -65,3 +65,3 @@ "main": "./dist/index.js", | ||
"@hapi/hapi": "^21.3.12", | ||
"@types/node": "^22.9.1", | ||
"@types/node": "^22.9.3", | ||
"@types/tape": "^5.6.4", | ||
@@ -85,4 +85,3 @@ "audit-ci": "^7.1.0", | ||
"tslint": "6.1.3", | ||
"typedoc": "0.26.11", | ||
"typescript": "^5.6.3" | ||
"typescript": "^5.7.2" | ||
}, | ||
@@ -89,0 +88,0 @@ "nyc": { |
Sorry, the diff of this file is not supported yet
31103
21
313