@instana/shared-metrics 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/package.json +3 -3
- package/src/description.js +1 -1
- package/src/healthchecks.js +1 -1
- package/src/keywords.js +1 -1
- package/src/name.js +1 -1
- package/src/util/nativeModuleRetry.js +9 -3
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.5.2](https://github.com/instana/nodejs/compare/v4.5.1...v4.5.2) (2025-01-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- resolved logging objects being undefined or missing ([#1509](https://github.com/instana/nodejs/issues/1509)) ([7715fed](https://github.com/instana/nodejs/commit/7715fed5843716a6e49d79f221efcec33a9a1c9d))
|
|
11
|
+
|
|
12
|
+
## [4.5.1](https://github.com/instana/nodejs/compare/v4.5.0...v4.5.1) (2025-01-13)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @instana/shared-metrics
|
|
15
|
+
|
|
6
16
|
# [4.5.0](https://github.com/instana/nodejs/compare/v4.4.0...v4.5.0) (2024-12-16)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @instana/shared-metrics
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instana/shared-metrics",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "Internal metrics plug-in package for Node.js monitoring with Instana",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Bastian Krol",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@instana/core": "4.5.
|
|
62
|
+
"@instana/core": "4.5.2",
|
|
63
63
|
"detect-libc": "^2.0.2",
|
|
64
64
|
"event-loop-lag": "^1.4.0",
|
|
65
65
|
"semver": "^7.5.4",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"event-loop-stats": "1.4.1",
|
|
75
75
|
"gcstats.js": "1.0.0"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "64b256360f4fef67322b408366fc8229c8c0ea24"
|
|
78
78
|
}
|
package/src/description.js
CHANGED
|
@@ -31,7 +31,7 @@ exports.activate = function activate(config) {
|
|
|
31
31
|
attempts++;
|
|
32
32
|
applicationUnderMonitoring.getMainPackageJsonStartingAtMainModule(config, (err, packageJson) => {
|
|
33
33
|
if (err) {
|
|
34
|
-
return logger.warn(
|
|
34
|
+
return logger.warn(`Failed to determine main package json. Reason: ${err.message} ${err.stack}`);
|
|
35
35
|
} else if (!packageJson && attempts < MAX_ATTEMPTS) {
|
|
36
36
|
setTimeout(() => {
|
|
37
37
|
exports.activate(config);
|
package/src/healthchecks.js
CHANGED
|
@@ -79,7 +79,7 @@ function gatherHealthcheckResults() {
|
|
|
79
79
|
.catch(function onHealthcheckResultFailure(/** @type {*} */ err) {
|
|
80
80
|
// @ts-ignore
|
|
81
81
|
exports.currentPayload = {};
|
|
82
|
-
logger.warn(
|
|
82
|
+
logger.warn(`Unexpected error while getting healthcheck results. ${err.message} ${err.stack}`);
|
|
83
83
|
timeoutHandle = setTimeout(gatherHealthcheckResults, timeBetweenHealthcheckCalls);
|
|
84
84
|
timeoutHandle.unref();
|
|
85
85
|
});
|
package/src/keywords.js
CHANGED
|
@@ -31,7 +31,7 @@ exports.activate = function activate(config) {
|
|
|
31
31
|
attempts++;
|
|
32
32
|
applicationUnderMonitoring.getMainPackageJsonStartingAtMainModule(config, (err, packageJson) => {
|
|
33
33
|
if (err) {
|
|
34
|
-
return logger.warn(
|
|
34
|
+
return logger.warn(`Failed to determine main package json. Reason: ${err.message} ${err.stack}`);
|
|
35
35
|
} else if (!packageJson && attempts < MAX_ATTEMPTS) {
|
|
36
36
|
setTimeout(() => {
|
|
37
37
|
exports.activate(config);
|
package/src/name.js
CHANGED
|
@@ -32,7 +32,7 @@ exports.activate = function activate(config) {
|
|
|
32
32
|
|
|
33
33
|
applicationUnderMonitoring.getMainPackageJsonStartingAtMainModule(config, (err, packageJson) => {
|
|
34
34
|
if (err) {
|
|
35
|
-
return logger.warn(
|
|
35
|
+
return logger.warn(`Failed to determine main package json. Reason: ${err.message} ${err.stack}`);
|
|
36
36
|
} else if (!packageJson && attempts < exports.MAX_ATTEMPTS) {
|
|
37
37
|
logger.debug('Main package.json could not be found. Will try again later.');
|
|
38
38
|
|
|
@@ -206,12 +206,16 @@ function copyPrecompiled(opts, loaderEmitter, callback) {
|
|
|
206
206
|
callback(true);
|
|
207
207
|
})
|
|
208
208
|
.catch(error => {
|
|
209
|
-
logger.warn(
|
|
209
|
+
logger.warn(
|
|
210
|
+
`Copying the precompiled build for ${opts.nativeModuleName} ${label} failed.
|
|
211
|
+
${error.message} ${error.stack}`
|
|
212
|
+
);
|
|
210
213
|
callback(false);
|
|
211
214
|
});
|
|
212
215
|
})
|
|
213
216
|
.catch(tarErr => {
|
|
214
|
-
logger.warn(`Unpacking the precompiled build for ${opts.nativeModuleName} ${label} failed
|
|
217
|
+
logger.warn(`Unpacking the precompiled build for ${opts.nativeModuleName} ${label} failed.
|
|
218
|
+
${tarErr.message} ${tarErr.stack}`);
|
|
215
219
|
callback(false);
|
|
216
220
|
});
|
|
217
221
|
});
|
|
@@ -245,7 +249,9 @@ function findNativeModulePath(opts) {
|
|
|
245
249
|
opts.nativeModuleParentPath = path.join(opts.nativeModulePath, '..');
|
|
246
250
|
return true;
|
|
247
251
|
} catch (e) {
|
|
248
|
-
logger.debug(
|
|
252
|
+
logger.debug(
|
|
253
|
+
`Could not find location for ${opts.nativeModuleName}. Will create a path for it. ${e.message} ${e.stack}`
|
|
254
|
+
);
|
|
249
255
|
return createNativeModulePath(opts);
|
|
250
256
|
}
|
|
251
257
|
}
|
package/src/version.js
CHANGED
|
@@ -30,7 +30,7 @@ exports.activate = function activate(config) {
|
|
|
30
30
|
attempts++;
|
|
31
31
|
applicationUnderMonitoring.getMainPackageJsonStartingAtMainModule(config, (err, packageJson) => {
|
|
32
32
|
if (err) {
|
|
33
|
-
return logger.warn(
|
|
33
|
+
return logger.warn(`Failed to determine main package json. Reason: ${err.message} ${err.stack}`);
|
|
34
34
|
} else if (!packageJson && attempts < MAX_ATTEMPTS) {
|
|
35
35
|
setTimeout(() => {
|
|
36
36
|
exports.activate(config);
|