mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
prevent all files from being instrumented
This commit is contained in:
parent
219bd6753c
commit
d7094d5d6c
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