@instana/shared-metrics 5.3.0 → 5.4.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,26 @@
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
+ ## [5.4.1](https://github.com/instana/nodejs/compare/v5.4.0...v5.4.1) (2026-03-25)
7
+
8
+ **Note:** Version bump only for package @instana/shared-metrics
9
+
10
+
11
+
12
+
13
+
14
+ # [5.4.0](https://github.com/instana/nodejs/compare/v5.3.0...v5.4.0) (2026-03-17)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **shared-metrics:** bumped tar from 7.5.10 to 7.5.11 ([9e1fded](https://github.com/instana/nodejs/commit/9e1fdede703352cd1baa1828bcd0c2f14703f2b7))
20
+ * **shared-metrics:** merged activeHandles and activeRequests into activeResources ([#2149](https://github.com/instana/nodejs/issues/2149)) ([84bd294](https://github.com/instana/nodejs/commit/84bd29491477891633ce7a0f9f4d71ebb4102c0f)), closes [/nodejs.org/api/deprecations.html#dep0161](https://github.com//nodejs.org/api/deprecations.html/issues/dep0161)
21
+
22
+
23
+
24
+
25
+
6
26
  # [5.3.0](https://github.com/instana/nodejs/compare/v5.2.3...v5.3.0) (2026-03-10)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instana/shared-metrics",
3
- "version": "5.3.0",
3
+ "version": "5.4.1",
4
4
  "description": "Internal metrics plug-in package for Node.js monitoring with Instana",
5
5
  "author": {
6
6
  "name": "Bastian Krol",
@@ -62,11 +62,11 @@
62
62
  },
63
63
  "license": "MIT",
64
64
  "dependencies": {
65
- "@instana/core": "5.3.0",
65
+ "@instana/core": "5.4.1",
66
66
  "detect-libc": "^2.1.2",
67
67
  "event-loop-lag": "^1.4.0",
68
68
  "semver": "^7.7.4",
69
- "tar": "^7.5.10"
69
+ "tar": "^7.5.11"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/tar": "^6.1.6"
@@ -75,5 +75,5 @@
75
75
  "event-loop-stats": "1.4.1",
76
76
  "gcstats.js": "1.0.0"
77
77
  },
78
- "gitHead": "90a043e1ac3fa122a62d57e9b0bad46038eb31ef"
78
+ "gitHead": "56fad96feece189ff32125c6b1c03c042f0d1ebf"
79
79
  }
@@ -0,0 +1,14 @@
1
+ /*
2
+ * (c) Copyright IBM Corp. 2026
3
+ */
4
+
5
+ 'use strict';
6
+
7
+ exports.payloadPrefix = 'activeResources';
8
+ Object.defineProperty(exports, 'currentPayload', {
9
+ get: function () {
10
+ return {
11
+ count: process.getActiveResourcesInfo().length
12
+ };
13
+ }
14
+ });
package/src/index.js CHANGED
@@ -5,8 +5,7 @@
5
5
 
6
6
  'use strict';
7
7
 
8
- const activeHandles = require('./activeHandles');
9
- const activeRequests = require('./activeRequests');
8
+ const activeResources = require('./activeResources');
10
9
  const args = require('./args');
11
10
  const dependencies = require('./dependencies');
12
11
  const directDependencies = require('./directDependencies');
@@ -25,8 +24,7 @@ const util = require('./util');
25
24
 
26
25
  /** @type {Array.<import('@instana/core/src/metrics').InstanaMetricsModule>} */
27
26
  const allMetrics = [
28
- activeHandles,
29
- activeRequests,
27
+ activeResources,
30
28
  args,
31
29
  dependencies,
32
30
  directDependencies,
@@ -1,19 +0,0 @@
1
- /*
2
- * (c) Copyright IBM Corp. 2021
3
- * (c) Copyright Instana Inc. and contributors 2016
4
- */
5
-
6
- 'use strict';
7
-
8
- exports.payloadPrefix = 'activeHandles';
9
-
10
- Object.defineProperty(exports, 'currentPayload', {
11
- get: function () {
12
- // TODO: _getActiveHandles is deprecated. Replace with getActiveResourcesInfo.
13
- // https://nodejs.org/api/deprecations.html#dep0161-process_getactiverequests-and-process_getactivehandles
14
- // Added in v16.
15
- // refs https://jsw.ibm.com/browse/INSTA-64277
16
- // @ts-ignore
17
- return process._getActiveHandles().length;
18
- }
19
- });
@@ -1,19 +0,0 @@
1
- /*
2
- * (c) Copyright IBM Corp. 2021
3
- * (c) Copyright Instana Inc. and contributors 2016
4
- */
5
-
6
- 'use strict';
7
-
8
- exports.payloadPrefix = 'activeRequests';
9
-
10
- Object.defineProperty(exports, 'currentPayload', {
11
- get: function () {
12
- // TODO: _getActiveRequests is deprecated. Replace with getActiveResourcesInfo.
13
- // https://nodejs.org/api/deprecations.html#dep0161-process_getactiverequests-and-process_getactivehandles
14
- // Added in v16.
15
- // refs https://jsw.ibm.com/browse/INSTA-64277
16
- // @ts-ignore
17
- return process._getActiveRequests().length;
18
- }
19
- });