function patchModules(modules, instrumentationInstance) {
  Hook(modules, (exports, name, basedir) => {
    // basedir = undefined when is a core module
    if (basedir) {
      // TODO: implement here if necessary to patch npm packages
    } else {
      exports = require(`./${name}.js`)(instrumentationInstance, exports);
    }
    return exports
  });
}
/**
 * This module only wrap the require function
 */
This module only wrap the require function
This module only wrap the require function
function patchModules(modules, instrumentationInstance) {
  Hook(modules, (exports, name, basedir) => {
    if (basedir) {
    } else {
      exports = require(`./${name}.js`)(instrumentationInstance, exports);
    }
    return exports
  });
}
function patchModules ( modules , instrumentationInstance ) { Hook ( modules , ( exports , name , basedir ) => { if ( basedir ) { } else { exports = require ( ` ${ name } ` ) ( instrumentationInstance , exports ) ; } return exports } ) ; }
This module only wrap the require function
This module only wrap the require function
// basedir = undefined when is a core module // TODO: implement here if necessary to patch npm packages