@instana/shared-metrics 1.137.4 → 2.0.0-rc.0

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,43 @@
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.0.0-rc.0](https://github.com/instana/nodejs/compare/v1.138.0...v2.0.0-rc.0) (2022-03-08)
7
+
8
+
9
+ ### Code Refactoring
10
+
11
+ * remove npm package instana-nodejs-sensor ([bebfc2d](https://github.com/instana/nodejs/commit/bebfc2da9989ade98034e5a1ae87e0a0bd43a5d8))
12
+
13
+
14
+ ### BREAKING CHANGES
15
+
16
+ * Starting with version 2.0.0, consumers of the package who
17
+ still use the deprecated package name instana-nodejs-sensor will need to follow
18
+ https://www.ibm.com/docs/en/obi/current?topic=nodejs-collector-installation#change-of-package-name
19
+ to receive updates in the future.
20
+
21
+ refs 80206
22
+
23
+
24
+
25
+
26
+
27
+ # [1.138.0](https://github.com/instana/nodejs/compare/v1.137.5...v1.138.0) (2022-02-08)
28
+
29
+ **Note:** Version bump only for package @instana/shared-metrics
30
+
31
+
32
+
33
+
34
+
35
+ ## [1.137.5](https://github.com/instana/nodejs/compare/v1.137.4...v1.137.5) (2022-01-25)
36
+
37
+ **Note:** Version bump only for package @instana/shared-metrics
38
+
39
+
40
+
41
+
42
+
6
43
  ## [1.137.4](https://github.com/instana/nodejs/compare/v1.137.3...v1.137.4) (2022-01-11)
7
44
 
8
45
  **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": "1.137.4",
3
+ "version": "2.0.0-rc.0",
4
4
  "description": "Internal metrics plug-in package for Node.js monitoring with Instana",
5
5
  "author": {
6
6
  "name": "Bastian Krol",
@@ -10,7 +10,8 @@
10
10
  "main": "src/index.js",
11
11
  "files": [
12
12
  "src",
13
- "addons/linux"
13
+ "addons/linux",
14
+ "CHANGELOG.md"
14
15
  ],
15
16
  "publishConfig": {
16
17
  "access": "public"
@@ -37,8 +38,7 @@
37
38
  "memory",
38
39
  "metrics",
39
40
  "monitoring",
40
- "performance",
41
- "sensor"
41
+ "performance"
42
42
  ],
43
43
  "contributors": [
44
44
  {
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "license": "MIT",
69
69
  "dependencies": {
70
- "@instana/core": "1.137.4",
70
+ "@instana/core": "2.0.0-rc.0",
71
71
  "detect-libc": "^1.0.3",
72
72
  "event-loop-lag": "^1.4.0",
73
73
  "recursive-copy": "^2.0.13",
@@ -79,8 +79,8 @@
79
79
  "no-code2": "2.0.0"
80
80
  },
81
81
  "optionalDependencies": {
82
- "event-loop-stats": "1.3.0",
82
+ "event-loop-stats": "1.4.1",
83
83
  "gcstats.js": "1.0.0"
84
84
  },
85
- "gitHead": "eb8440ec768cebfb83def798da5770b874d00b4c"
85
+ "gitHead": "040c7b2ab701f2a16ba25b12f684ff9ecc8023eb"
86
86
  }
package/src/gc.js CHANGED
@@ -55,7 +55,7 @@ const nativeModuleLoader = require('./util/nativeModuleRetry')({
55
55
  'Could not load gcstats.js. You will not be able to see GC information in Instana for this application. This ' +
56
56
  'typically occurs when native addons could not be installed during module installation (npm install). See the ' +
57
57
  'instructions to learn more about the requirements of the collector: ' +
58
- 'https://www.instana.com/docs/ecosystem/node-js/installation/#native-addons'
58
+ 'https://www.ibm.com/docs/de/obi/current?topic=nodejs-collector-installation#native-addons'
59
59
  });
60
60
 
61
61
  /** @type {NodeJS.Timeout} */
package/src/libuv.js CHANGED
@@ -22,7 +22,7 @@ const nativeModuleLoader = require('./util/nativeModuleRetry')({
22
22
  'Instana for this application. This typically occurs when native addons could not be ' +
23
23
  'installed during module installation (npm install). See the instructions to learn more ' +
24
24
  'about the requirements of the collector: ' +
25
- 'https://www.instana.com/docs/ecosystem/node-js/installation/#native-addons'
25
+ 'https://www.ibm.com/docs/de/obi/current?topic=nodejs-collector-installation#native-addons'
26
26
  });
27
27
 
28
28
  nativeModuleLoader.once('loaded', eventLoopStats_ => {
@@ -11,7 +11,7 @@ const EventEmitter = require('events');
11
11
  const copy = require('recursive-copy');
12
12
  const fs = require('fs');
13
13
  const os = require('os');
14
- const semver = require('semver');
14
+ const tar = require('tar');
15
15
  const path = require('path');
16
16
  const detectLibc = require('detect-libc');
17
17
 
@@ -171,20 +171,6 @@ function copyPrecompiled(opts, loaderEmitter, callback) {
171
171
 
172
172
  logger.info(`Found a precompiled version for ${opts.nativeModuleName} ${label}, unpacking.`);
173
173
 
174
- /**
175
- * tar@6 has dropped support for Node < 10
176
- * It might work to require tar@6 or to execute commands with tar@6 and Node < 10,
177
- * but we don't want to risk that a customers application fails - especially if tar@6 adds
178
- * breaking changes. We decided to disallow this feature.
179
- */
180
- if (semver.lt(process.version, '10.0.0')) {
181
- logger.info(`Skipped copying precompiled version for ${opts.nativeModuleName} ${label} with Node < 10.`);
182
- callback(false);
183
- return;
184
- }
185
-
186
- const tar = require('tar');
187
-
188
174
  tar
189
175
  .x({
190
176
  cwd: os.tmpdir(),