Skip to content
Snippets Groups Projects
Commit 6ec9b1ce authored by richard.petersen's avatar richard.petersen :sailboat:
Browse files

Add include path option

parent 37e1e238
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment