@instana/core
Advanced tools
Comparing version 4.5.1 to 4.5.2
@@ -6,2 +6,8 @@ # Change Log | ||
## [4.5.2](https://github.com/instana/nodejs/compare/v4.5.1...v4.5.2) (2025-01-13) | ||
### Bug Fixes | ||
- resolved logging objects being undefined or missing ([#1509](https://github.com/instana/nodejs/issues/1509)) ([7715fed](https://github.com/instana/nodejs/commit/7715fed5843716a6e49d79f221efcec33a9a1c9d)) | ||
## [4.5.1](https://github.com/instana/nodejs/compare/v4.5.0...v4.5.1) (2025-01-13) | ||
@@ -8,0 +14,0 @@ |
{ | ||
"name": "@instana/core", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -75,3 +75,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "41c09b8fdd23f6cb0df992c7e479d71532ac91b4" | ||
"gitHead": "64b256360f4fef67322b408366fc8229c8c0ea24" | ||
} |
@@ -313,7 +313,7 @@ /* | ||
if (!traceId) { | ||
logger.warn('Cannot start a pseudo span without a trace ID', spanName, kind); | ||
logger.warn(`Cannot start a pseudo span without a trace ID: ${spanName}, ${kind}`); | ||
return; | ||
} | ||
if (!spanId) { | ||
logger.warn('Cannot start a pseudo span without a span ID', spanName, kind); | ||
logger.warn(`Cannot start a pseudo span without a span ID: ${spanName}, ${kind}`); | ||
return; | ||
@@ -320,0 +320,0 @@ } |
@@ -461,3 +461,3 @@ /* | ||
if (error) { | ||
logger.warn(`Failed to transmit spans, will retry in ${transmissionDelay} ms.`, error.message); | ||
logger.warn(`Failed to transmit spans, will retry in ${transmissionDelay} ms. ${error.message} ${error.stack}`); | ||
spans = spans.concat(spansToSend); | ||
@@ -464,0 +464,0 @@ removeSpansIfNecessary(); |
@@ -101,3 +101,3 @@ /* | ||
} catch (e) { | ||
logger.warn('Package.json file %s cannot be parsed: %s', packageJsonPath, e); | ||
logger.warn(`Package.json file ${packageJsonPath} cannot be parsed: ${e.message} ${e.stack}`); | ||
return cb(e, null); | ||
@@ -104,0 +104,0 @@ } |
@@ -35,7 +35,8 @@ /* | ||
} | ||
const argObj = { | ||
args: Array.prototype.slice.call(arguments) | ||
}; | ||
logger.debug('Function %s was called %s times. This time with the following arguments.', name, callCount, { | ||
args: Array.prototype.slice.call(arguments) | ||
}); | ||
logger.debug(`Function ${name} was called ${callCount} times. This time with the following arguments: ${argObj}`); | ||
}; | ||
}; |
799422
20351