From 6ec9b1ceb33d19600df56bf61affe7f48bb36d00 Mon Sep 17 00:00:00 2001 From: Richard Petersen <richard.petersen@open-xchange.com> Date: Mon, 29 Nov 2021 12:20:33 +0100 Subject: [PATCH] Add include path option --- src/createApp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createApp.js b/src/createApp.js index c7aea10..53662a7 100644 --- a/src/createApp.js +++ b/src/createApp.js @@ -24,7 +24,7 @@ import { fileCache } from './files.js' const ignorePaths = ['/ready', '/healthy'] const swaggerDocument = yaml.load(fs.readFileSync('./src/swagger.yaml', 'utf8')) const bypass = (request) => ignorePaths.includes(request.path) -const metricsMiddleware = promBundle({ bypass }) +const metricsMiddleware = promBundle({ bypass, includePath: true }) export function createApp () { // The app returned by express() is in fact a JavaScript Function, designed to be passed to Node’s HTTP servers as a callback to handle requests. -- GitLab