@instana/shared-metrics 2.36.2-beta.1 → 2.36.3

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,27 @@
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
+ ## [2.36.3](https://github.com/instana/nodejs/compare/v2.36.2...v2.36.3) (2025-03-17)
7
+
8
+ **Note:** Version bump only for package @instana/shared-metrics
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.36.2](https://github.com/instana/nodejs/compare/v2.36.1...v2.36.2) (2025-03-17)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * resolved logging issue for the dependency distance calculator ([dcbe478](https://github.com/instana/nodejs/commit/dcbe4784c5485f38146e4e03d91c7090ea481449)), closes [#1019](https://github.com/instana/nodejs/issues/1019)
20
+ * resolved TypeError "eventLoopStats.sense is not a function" ([#1575](https://github.com/instana/nodejs/issues/1575)) ([5696b83](https://github.com/instana/nodejs/commit/5696b8379764ac3ad26ede4d0670062af2086d30))
21
+ * resolved TypeError gcStats.on is not a function ([6c1b6a4](https://github.com/instana/nodejs/commit/6c1b6a4a38821e794ae8e25e516f3c00ad18a2a0))
22
+
23
+
24
+
25
+
26
+
6
27
  ## [2.36.2-beta.1](https://github.com/instana/nodejs/compare/v2.36.2-beta.0...v2.36.2-beta.1) (2025-02-20)
7
28
 
8
29
  **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": "2.36.2-beta.1",
3
+ "version": "2.36.3",
4
4
  "description": "Internal metrics plug-in package for Node.js monitoring with Instana",
5
5
  "author": {
6
6
  "name": "Bastian Krol",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "license": "MIT",
69
69
  "dependencies": {
70
- "@instana/core": "2.36.2-beta.1",
70
+ "@instana/core": "2.36.3",
71
71
  "detect-libc": "^1.0.3",
72
72
  "event-loop-lag": "^1.4.0",
73
73
  "recursive-copy": "^2.0.13",
@@ -82,5 +82,5 @@
82
82
  "event-loop-stats": "1.4.1",
83
83
  "gcstats.js": "1.0.0"
84
84
  },
85
- "gitHead": "3658ab2985ea78165461f7526ea2b748f8a82e25"
85
+ "gitHead": "a6b9f1a4fb5bfe176909047feb70b1204d86f873"
86
86
  }
package/src/gc.js CHANGED
@@ -43,7 +43,7 @@ exports.currentPayload = {
43
43
 
44
44
  exports.activate = function activate() {
45
45
  activateHasBeenCalled = true;
46
- if (gcStats) {
46
+ if (gcStats && typeof gcStats.on === 'function') {
47
47
  actuallyActivate();
48
48
  }
49
49
  };
@@ -65,7 +65,7 @@ let senseIntervalHandle;
65
65
  nativeModuleLoader.once('loaded', gcStats_ => {
66
66
  gcStats = gcStats_;
67
67
  exports.currentPayload.statsSupported = true;
68
- if (activateHasBeenCalled) {
68
+ if (activateHasBeenCalled && gcStats && typeof gcStats.on === 'function') {
69
69
  actuallyActivate();
70
70
  }
71
71
  });