diff --git a/packages/collector/test/tracing/logger/bunyan/test.js b/packages/collector/test/tracing/logger/bunyan/test.js index 563cff52f2..f63b1bfef0 100644 --- a/packages/collector/test/tracing/logger/bunyan/test.js +++ b/packages/collector/test/tracing/logger/bunyan/test.js @@ -186,7 +186,5 @@ mochaSuiteFn('tracing/logger/bunyan', function () { function trigger(level, controls, headers = {}) { return controls.sendRequest({ path: `/${level}`, headers }); - - // fetch(`http://127.0.0.1:${appPort}/${level}`, { headers }); } }); diff --git a/packages/core/src/tracing/instrumentation/loggers/bunyan.js b/packages/core/src/tracing/instrumentation/loggers/bunyan.js index a0f872d1e5..780f17c76a 100644 --- a/packages/core/src/tracing/instrumentation/loggers/bunyan.js +++ b/packages/core/src/tracing/instrumentation/loggers/bunyan.js @@ -29,13 +29,6 @@ function instrument(Logger) { function shimLog(markAsError) { return originalLog => function () { - if (arguments.length === 0 || (this.fields && !!this.fields.__in)) { - // * arguments.length === 0 -> This is a logger.warn() type of call (without arguments), this will not log - // anything but simply return whether the log level in question is enabled for this logger. - // * this.fields.__in -> This is one of Instana's own loggers, we never want to trace those log calls. - return originalLog.apply(this, arguments); - } - if (cls.skipExitTracing({ isActive, skipAllowRootExitSpanPresence: true })) { return originalLog.apply(this, arguments); }