@instana/collector
Advanced tools
Comparing version 4.5.3 to 4.6.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.6.0](https://github.com/instana/nodejs/compare/v4.5.3...v4.6.0) (2025-01-18) | ||
### Bug Fixes | ||
- changed internal logger timestamp to ISO string ([#1518](https://github.com/instana/nodejs/issues/1518)) ([0a6af07](https://github.com/instana/nodejs/commit/0a6af07056563479bb24c58420a0d9efeb74c873)) | ||
- resolved issue in setLogger function with winston logger ([#1522](https://github.com/instana/nodejs/issues/1522)) ([52f102e](https://github.com/instana/nodejs/commit/52f102ec4e198d2d974f5b2503b8d16acc47e593)) | ||
### Features | ||
- added support for graphql-ws v6 ([#1516](https://github.com/instana/nodejs/issues/1516)) ([1da50b8](https://github.com/instana/nodejs/commit/1da50b861e391052defe36eb9bf2ab5aa7a6621a)) | ||
## [4.5.3](https://github.com/instana/nodejs/compare/v4.5.2...v4.5.3) (2025-01-14) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@instana/collector", | ||
"version": "4.5.3", | ||
"version": "4.6.0", | ||
"description": "The Instana Node.js metrics and trace data collector", | ||
@@ -86,4 +86,4 @@ "author": { | ||
"dependencies": { | ||
"@instana/core": "4.5.3", | ||
"@instana/shared-metrics": "4.5.3", | ||
"@instana/core": "4.6.0", | ||
"@instana/shared-metrics": "4.6.0", | ||
"pino": "^9.6.0", | ||
@@ -94,3 +94,3 @@ "semver": "^7.5.4", | ||
"optionalDependencies": { | ||
"@instana/autoprofile": "4.5.3" | ||
"@instana/autoprofile": "4.6.0" | ||
}, | ||
@@ -101,3 +101,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "cac14d4c9f5efa60edee223d45d6220a79336508" | ||
"gitHead": "dda905e590b17491d2c403e153b2d646935beb05" | ||
} |
@@ -58,3 +58,3 @@ /* | ||
'collector: ' + | ||
'https://www.ibm.com/docs/de/obi/current?topic=nodejs-collector-installation#native-add-ons' | ||
'https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-collector-installation#native-add-ons' | ||
); | ||
@@ -61,0 +61,0 @@ |
@@ -18,3 +18,3 @@ #!/usr/bin/env node | ||
// Thus, there is no user controlled code when that Node.js process is starting up, and in turn our usual installation | ||
// documented at https://www.ibm.com/docs/de/obi/current?topic=nodejs-collector-installation can not be performed (in particular, there | ||
// documented at https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-collector-installation#installing-the-collector can not be performed (in particular, there | ||
// is no user controlled code to put the require('@instana/collector')(); into. | ||
@@ -21,0 +21,0 @@ // |
@@ -26,3 +26,3 @@ /* | ||
// eslint-disable-next-line max-len | ||
// https://www.ibm.com/docs/de/obi/current?topic=nodejs-collector-installation#installation-without-modifying-the-source-code | ||
// https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-collector-installation#activating-the-collector | ||
@@ -29,0 +29,0 @@ const isExcludedFromInstrumentation = coreUtil.excludedFromInstrumentation && coreUtil.excludedFromInstrumentation(); |
@@ -58,24 +58,29 @@ /* | ||
const consoleStream = uninstrumentedLogger.destination(parentLogger.destination); | ||
try { | ||
const consoleStream = uninstrumentedLogger.destination(parentLogger.destination); | ||
const multiStream = { | ||
/** | ||
* Custom write method to send logs to multiple destinations | ||
* @param {string} chunk | ||
*/ | ||
write(chunk) { | ||
consoleStream.write(chunk); | ||
const multiStream = { | ||
/** | ||
* Custom write method to send logs to multiple destinations | ||
* @param {string} chunk | ||
*/ | ||
write(chunk) { | ||
consoleStream.write(chunk); | ||
loggerToAgentStream.write(chunk); | ||
} | ||
}; | ||
loggerToAgentStream.write(chunk); | ||
} | ||
}; | ||
parentLogger = uninstrumentedLogger( | ||
{ | ||
...parentLogger.levels, | ||
level: parentLogger.level || 'info', | ||
base: parentLogger.bindings() | ||
}, | ||
multiStream | ||
); | ||
parentLogger = uninstrumentedLogger( | ||
{ | ||
...parentLogger.levels, | ||
level: parentLogger.level || 'info', | ||
base: parentLogger.bindings(), | ||
timestamp: () => `,"time":"${new Date().toISOString()}"` | ||
}, | ||
multiStream | ||
); | ||
} catch (error) { | ||
parentLogger.debug(`An issue occurred while modifying the current logger: ${error.message}`); | ||
} | ||
} else if (parentLogger && parentLogger.addStream) { | ||
@@ -177,4 +182,8 @@ // in case we are using a bunyan logger we also forward logs to the agent | ||
return ( | ||
_logger && typeof _logger === 'object' && typeof _logger.child === 'function' && typeof _logger.level === 'string' | ||
_logger && | ||
typeof _logger === 'object' && | ||
typeof _logger.child === 'function' && | ||
typeof _logger.level === 'string' && | ||
typeof _logger.bindings === 'function' | ||
); | ||
} |
@@ -30,5 +30,5 @@ /* | ||
// eslint-disable-next-line max-len | ||
'https://www.ibm.com/docs/de/obi/current?topic=nodejs-collector-installation#installing-the-nodejs-collector-package and ' + | ||
'https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-collector-installation#installing-the-collector and ' + | ||
// eslint-disable-next-line max-len | ||
'https://www.ibm.com/docs/de/obi/current?topic=nodejs-collector-installation#common-pitfalls. Tracing might only work ' + | ||
'https://www.ibm.com/docs/en/instana-observability/current?topic=nodejs-troubleshooting. Tracing might only work ' + | ||
'partially with this setup, that is, some calls will not be captured.' | ||
@@ -35,0 +35,0 @@ ); |
164964
3034
+ Added@instana/autoprofile@4.6.0(transitive)
+ Added@instana/core@4.6.0(transitive)
+ Added@instana/shared-metrics@4.6.0(transitive)
- Removed@instana/autoprofile@4.5.3(transitive)
- Removed@instana/core@4.5.3(transitive)
- Removed@instana/shared-metrics@4.5.3(transitive)
Updated@instana/core@4.6.0