From aff46140a7e8cd1b05421e103a2e4db32729270f Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 12 Jul 2018 09:53:53 -0400 Subject: [PATCH] remove incorrect module order warning --- src/instrumenter.js | 9 --------- 1 file changed, 9 deletions(-) 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) })