diff --git a/src/createApp.js b/src/createApp.js index c7aea101c8f5144037f5c1b2eb2f550b397869bb..53662a72f94c53844805153378a48fa88ac8a399 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.