Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abhilash-sivan committed Dec 20, 2024
1 parent f925c7b commit e7fe9bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions packages/collector/test/tracing/logger/bunyan/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
});
7 changes: 0 additions & 7 deletions packages/core/src/tracing/instrumentation/loggers/bunyan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e7fe9bb

Please sign in to comment.