From 8bbcaec9bd10eb106aa36e7e49e655e2262c10a0 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 11 Nov 2019 09:25:52 +0000 Subject: [PATCH] [Explore]: Separate metrics of resources and invalid requests git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@57558 d315682c-612b-4755-9ff5-7f18f6832af3 --- explore/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explore/server.ts b/explore/server.ts index d662a176..7eb48629 100644 --- a/explore/server.ts +++ b/explore/server.ts @@ -109,7 +109,7 @@ app.get('*', (req, res) => { } else { res.render('index', {req}); res.on('finish', function () { - responses.inc({route: '**', code: res.statusCode}); + responses.inc({route: req.path, code: res.statusCode}); }); } });