@instana/shared-metrics 4.24.0 → 4.24.1

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 CHANGED
@@ -3,6 +3,17 @@
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.24.1](https://github.com/instana/nodejs/compare/v4.24.0...v4.24.1) (2025-09-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * bumped tar from 6.2.1 to 7.4.3 ([#1996](https://github.com/instana/nodejs/issues/1996)) ([af3ac42](https://github.com/instana/nodejs/commit/af3ac427df4d136fd542598c7bfdb32cbf9274f7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [4.24.0](https://github.com/instana/nodejs/compare/v4.23.1...v4.24.0) (2025-09-11)
7
18
 
8
19
  **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.24.0",
3
+ "version": "4.24.1",
4
4
  "description": "Internal metrics plug-in package for Node.js monitoring with Instana",
5
5
  "author": {
6
6
  "name": "Bastian Krol",
@@ -59,11 +59,11 @@
59
59
  },
60
60
  "license": "MIT",
61
61
  "dependencies": {
62
- "@instana/core": "4.24.0",
62
+ "@instana/core": "4.24.1",
63
63
  "detect-libc": "^2.0.2",
64
64
  "event-loop-lag": "^1.4.0",
65
65
  "semver": "^7.7.2",
66
- "tar": "^6.2.1"
66
+ "tar": "^7.4.3"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/tar": "^6.1.6"
@@ -72,5 +72,5 @@
72
72
  "event-loop-stats": "1.4.1",
73
73
  "gcstats.js": "1.0.0"
74
74
  },
75
- "gitHead": "33245c6bef5a214e3ce174f0b7dce46bdffb0d73"
75
+ "gitHead": "e733ed23eb3230f746b9561115c73a8aaaac439e"
76
76
  }
@@ -15,7 +15,7 @@ const { DependencyDistanceCalculator, MAX_DEPTH } = require('./util/DependencyDi
15
15
  let logger;
16
16
 
17
17
  /**
18
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
18
+ * @param {import('@instana/core/src/config').InstanaConfig} config
19
19
  */
20
20
  exports.init = function init(config) {
21
21
  logger = config.logger;
@@ -199,7 +199,7 @@ function addDependency(dependency, dependencyDirPath, countDownLatch) {
199
199
  }
200
200
  } catch (parseErr) {
201
201
  return logger.info(
202
- `Failed to identify version of ${dependency} dependency due to: ${parseErr?.message}.
202
+ `Failed to identify version of ${dependency} dependency due to: ${parseErr?.message}.
203
203
  This means that you will not be able to see details about this dependency within Instana.`
204
204
  );
205
205
  }
@@ -11,7 +11,7 @@ const { applicationUnderMonitoring } = require('@instana/core').util;
11
11
  let logger;
12
12
 
13
13
  /**
14
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
14
+ * @param {import('@instana/core/src/config').InstanaConfig} config
15
15
  */
16
16
  exports.init = function init(config) {
17
17
  logger = config.logger;
@@ -11,7 +11,7 @@ const { util, uninstrumentedFs: fs } = require('@instana/core');
11
11
  let logger;
12
12
 
13
13
  /**
14
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
14
+ * @param {import('@instana/core/src/config').InstanaConfig} config
15
15
  */
16
16
  exports.init = function init(config) {
17
17
  logger = config.logger;
@@ -39,7 +39,7 @@ exports.activate = function activate() {
39
39
  util.applicationUnderMonitoring.getMainPackageJsonPathStartingAtMainModule((err, packageJsonPath) => {
40
40
  if (err) {
41
41
  return logger.info(
42
- `Failed to determine main package.json for analysis of direct dependencies.
42
+ `Failed to determine main package.json for analysis of direct dependencies.
43
43
  Reason: ${err?.message} ${err?.stack}`
44
44
  );
45
45
  } else if (!packageJsonPath && attempts < MAX_ATTEMPTS) {
@@ -11,7 +11,7 @@ const { hook } = require('@instana/core').util;
11
11
  let logger;
12
12
 
13
13
  /**
14
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
14
+ * @param {import('@instana/core/src/config').InstanaConfig} config
15
15
  */
16
16
  exports.init = function init(config) {
17
17
  logger = config.logger;
@@ -39,7 +39,7 @@ hook.onModuleLoad(
39
39
  );
40
40
 
41
41
  /**
42
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
42
+ * @param {import('@instana/core/src/config').InstanaConfig} config
43
43
  */
44
44
  exports.activate = function activate(config) {
45
45
  timeBetweenHealthcheckCalls = config.metrics.timeBetweenHealthcheckCalls;
package/src/index.js CHANGED
@@ -44,7 +44,7 @@ const allMetrics = [
44
44
  ];
45
45
 
46
46
  /**
47
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
47
+ * @param {import('@instana/core/src/config').InstanaConfig} config
48
48
  */
49
49
  const init = function (config) {
50
50
  util.init(config);
@@ -64,7 +64,7 @@ const init = function (config) {
64
64
  * @typedef {Object} InstanaSharedMetrics
65
65
  * @property {Array.<import('@instana/core/src/metrics').InstanaMetricsModule>} allMetrics
66
66
  * @property {import('./util')} util
67
- * @property {(config: import('@instana/core/src/util/normalizeConfig').InstanaConfig) => void} init
67
+ * @property {(config: import('@instana/core/src/config').InstanaConfig) => void} init
68
68
  * @property {(logger: import('@instana/core/src/core').GenericLogger) => void} setLogger
69
69
  */
70
70
 
package/src/keywords.js CHANGED
@@ -11,7 +11,7 @@ const { applicationUnderMonitoring } = require('@instana/core').util;
11
11
  let logger;
12
12
 
13
13
  /**
14
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
14
+ * @param {import('@instana/core/src/config').InstanaConfig} config
15
15
  */
16
16
  exports.init = function init(config) {
17
17
  logger = config.logger;
package/src/name.js CHANGED
@@ -11,7 +11,7 @@ const { applicationUnderMonitoring } = require('@instana/core').util;
11
11
  let logger;
12
12
 
13
13
  /**
14
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
14
+ * @param {import('@instana/core/src/config').InstanaConfig} config
15
15
  */
16
16
  exports.init = function init(config) {
17
17
  logger = config.logger;
@@ -15,7 +15,7 @@ const CountDownLatch = require('./CountDownLatch');
15
15
  let logger;
16
16
 
17
17
  /**
18
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
18
+ * @param {import('@instana/core/src/config').InstanaConfig} config
19
19
  */
20
20
  const init = config => {
21
21
  logger = config.logger;
@@ -89,7 +89,7 @@ class DependencyDistanceCalculator {
89
89
  parsedPackageJson = JSON.parse(contents);
90
90
  } catch (parseErr) {
91
91
  logger.debug(
92
- `Failed to calculate transitive distances for some dependencies, could not parse package.json file at
92
+ `Failed to calculate transitive distances for some dependencies, could not parse package.json file at
93
93
  ${packageJsonPath}: ${parseErr?.message}.`
94
94
  );
95
95
  this.globalCountDownLatchAllPackages.countDown(3);
@@ -106,7 +106,7 @@ class DependencyDistanceCalculator {
106
106
  // This catch-block is for synchronous errors from fs.readFile, which can also happen in addition to the callback
107
107
  // being called with an error.
108
108
  logger.debug(
109
- `Failed to calculate transitive distances for some dependencies, synchronous error from fs.readFile for
109
+ `Failed to calculate transitive distances for some dependencies, synchronous error from fs.readFile for
110
110
  ${packageJsonPath}: ${fsReadFileErr?.message}`
111
111
  );
112
112
  this.globalCountDownLatchAllPackages.countDown(3);
package/src/util/index.js CHANGED
@@ -9,7 +9,7 @@ const nativeModuleRetry = require('./nativeModuleRetry');
9
9
  const dependencyDistanceCalculator = require('./DependencyDistanceCalculator');
10
10
 
11
11
  /**
12
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
12
+ * @param {import('@instana/core/src/config').InstanaConfig} config
13
13
  */
14
14
  const init = config => {
15
15
  nativeModuleRetry.init(config);
@@ -16,7 +16,7 @@ const detectLibc = require('detect-libc');
16
16
  let logger;
17
17
 
18
18
  /**
19
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
19
+ * @param {import('@instana/core/src/config').InstanaConfig} config
20
20
  */
21
21
  exports.init = function init(config) {
22
22
  logger = config.logger;
@@ -178,7 +178,7 @@ function copyPrecompiled(opts, loaderEmitter, callback) {
178
178
  return;
179
179
  } else if (statsErr) {
180
180
  logger.warn(
181
- `Looking for a precompiled version for ${opts.nativeModuleName} ${label} failed.
181
+ `Looking for a precompiled version for ${opts.nativeModuleName} ${label} failed.
182
182
  ${statsErr?.message} ${statsErr?.stack}`
183
183
  );
184
184
  callback(false);
@@ -235,7 +235,7 @@ function copyPrecompiled(opts, loaderEmitter, callback) {
235
235
  });
236
236
  })
237
237
  .catch(tarErr => {
238
- logger.warn(`Unpacking the precompiled build for ${opts.nativeModuleName} ${label} failed.
238
+ logger.warn(`Unpacking the precompiled build for ${opts.nativeModuleName} ${label} failed.
239
239
  ${tarErr?.message} ${tarErr?.stack}`);
240
240
  callback(false);
241
241
  });
package/src/version.js CHANGED
@@ -11,7 +11,7 @@ const { applicationUnderMonitoring } = require('@instana/core').util;
11
11
  let logger;
12
12
 
13
13
  /**
14
- * @param {import('@instana/core/src/util/normalizeConfig').InstanaConfig} config
14
+ * @param {import('@instana/core/src/config').InstanaConfig} config
15
15
  */
16
16
  exports.init = function init(config) {
17
17
  logger = config.logger;