diff --git a/packages/dd-trace/src/ci-visibility/dynamic-instrumentation/index.js b/packages/dd-trace/src/ci-visibility/dynamic-instrumentation/index.js index ca92249dd7..bca632d463 100644 --- a/packages/dd-trace/src/ci-visibility/dynamic-instrumentation/index.js +++ b/packages/dd-trace/src/ci-visibility/dynamic-instrumentation/index.js @@ -7,8 +7,6 @@ const log = require('../log') const probeIdToResolvePromise = new Map() -let testVisDynamicInstrumentation = null - class TestVisDynamicInstrumentation { constructor () { this.worker = null @@ -60,10 +58,4 @@ class TestVisDynamicInstrumentation { } } -module.exports = (config) => { - if (!testVisDynamicInstrumentation) { - testVisDynamicInstrumentation = new TestVisDynamicInstrumentation(config) - } - - return testVisDynamicInstrumentation -} +module.exports = new TestVisDynamicInstrumentation()