mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
prevent all files from being instrumented
This commit is contained in:
parent
85a420d5a5
commit
64cd822bd1
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ module.exports = function instrumentationMiddleware(opts) {
|
|||
var fileMap = {};
|
||||
|
||||
function filenameForReq(req) {
|
||||
if (req._parsedUrl.query && !~req._parsedUrl.query.indexOf('instrument')) return false;
|
||||
if (!req._parsedUrl.query || !~req._parsedUrl.query.indexOf('instrument')) return false;
|
||||
|
||||
// expected absolute path to the file
|
||||
var filename = path.join(root, req._parsedUrl.pathname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue