diff --git a/src/instrumenter.js b/src/instrumenter.js index bd19efa8dba..2d04986e611 100644 --- a/src/instrumenter.js +++ b/src/instrumenter.js @@ -94,15 +94,6 @@ class Instrumenter { .filter(instrumentation => moduleName === filename(instrumentation)) .filter(instrumentation => matchVersion(moduleVersion, instrumentation.versions)) .forEach(instrumentation => { - const modulePath = [moduleBaseDir, instrumentation.file].filter(val => val).join('/') - - if (require.cache[modulePath]) { - log.debug([ - `Instrumented module "${moduleName}" was imported before calling tracer.init().`, - `Please make sure to initialize the tracer before importing any instrumented module.` - ].join(' ')) - } - this._instrumented.set(instrumentation, moduleExports) instrumentation.patch.call(this, moduleExports, this._tracer._tracer, this._plugins.get(plugin).config) })