@instana/shared-metrics 2.0.0-rc.0 → 2.0.0-rc.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,12 +3,12 @@
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)
6
+ # [2.0.0-rc.1](https://github.com/instana/nodejs/compare/v1.140.1...v2.0.0-rc.1) (2022-04-04)
7
7
 
8
8
 
9
- ### Code Refactoring
9
+ ### Bug Fixes
10
10
 
11
- * remove npm package instana-nodejs-sensor ([bebfc2d](https://github.com/instana/nodejs/commit/bebfc2da9989ade98034e5a1ae87e0a0bd43a5d8))
11
+ * remove npm package instana-nodejs-sensor ([3bbf9cd](https://github.com/instana/nodejs/commit/3bbf9cdb6b1238e314f590601360460fd8101e55))
12
12
 
13
13
 
14
14
  ### BREAKING CHANGES
@@ -18,7 +18,38 @@ still use the deprecated package name instana-nodejs-sensor will need to follow
18
18
  https://www.ibm.com/docs/en/obi/current?topic=nodejs-collector-installation#change-of-package-name
19
19
  to receive updates in the future.
20
20
 
21
- refs 80206
21
+
22
+
23
+
24
+
25
+ ## [1.140.1](https://github.com/instana/nodejs/compare/v1.140.0...v1.140.1) (2022-04-04)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **metrics:** do not report metrics from worker threads ([#517](https://github.com/instana/nodejs/issues/517)) ([bdf7869](https://github.com/instana/nodejs/commit/bdf7869e08d039e5769131d958e1037dc1748cd1)), closes [#500](https://github.com/instana/nodejs/issues/500)
31
+
32
+
33
+
34
+
35
+
36
+ # [1.140.0](https://github.com/instana/nodejs/compare/v1.138.0...v1.140.0) (2022-03-24)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **collector:** fix export returned from init ([3cc709c](https://github.com/instana/nodejs/commit/3cc709cccb37ac9b0135a604e33f030a63b6cbda))
42
+
43
+
44
+
45
+
46
+
47
+ # [1.139.0](https://github.com/instana/nodejs/compare/v1.138.0...v1.139.0) (2022-03-09)
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * **collector:** fix export returned from init ([3cc709c](https://github.com/instana/nodejs/commit/3cc709cccb37ac9b0135a604e33f030a63b6cbda))
22
53
 
23
54
 
24
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instana/shared-metrics",
3
- "version": "2.0.0-rc.0",
3
+ "version": "2.0.0-rc.1",
4
4
  "description": "Internal metrics plug-in package for Node.js monitoring with Instana",
5
5
  "author": {
6
6
  "name": "Bastian Krol",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "scripts": {
28
28
  "audit": "bin/prepare-audit.sh && npm audit --production; AUDIT_RESULT=$?; git checkout package-lock.json; exit $AUDIT_RESULT",
29
- "test": "npm run test:mocha",
30
- "test:mocha": "echo \"******* Files to be tested:\n $CI_SHARED_METRICS_TEST_FILES\" && mocha --sort --reporter mocha-multi --reporter-options spec=-,xunit=../../test-results/shared-metrics/results.xml ${CI_SHARED_METRICS_TEST_FILES:=$(find test -iname '*test.js' -not -path '*node_modules*')} test/globalHooks_test.js",
31
- "test:debug": "WITH_STDOUT=true npm run test:mocha",
29
+ "test": "mocha --sort test/globalHooks_test.js $(find test -iname '*test.js' -not -path '*node_modules*')",
30
+ "test:ci": "echo \"******* Files to be tested:\n $CI_SHARED_METRICS_TEST_FILES\" && if [ -z \"${CI_SHARED_METRICS_TEST_FILES}\" ]; then echo \"No Files to test in this node\"; else mocha --reporter mocha-multi-reporters --reporter-options configFile=reporter-config.json --sort test/globalHooks_test.js ${CI_SHARED_METRICS_TEST_FILES}; fi",
31
+ "test:debug": "WITH_STDOUT=true npm run test",
32
32
  "lint": "eslint src test",
33
33
  "verify": "npm run lint && npm test",
34
34
  "prettier": "prettier --write 'src/**/*.js' 'test/**/*.js'"
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "license": "MIT",
69
69
  "dependencies": {
70
- "@instana/core": "2.0.0-rc.0",
70
+ "@instana/core": "2.0.0-rc.1",
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": "040c7b2ab701f2a16ba25b12f684ff9ecc8023eb"
85
+ "gitHead": "bf069e63f0d8a5600b575bf1aa85ba72c8b53370"
86
86
  }
@@ -61,7 +61,8 @@ function loadNativeAddOnInternal(opts, loaderEmitter) {
61
61
  try {
62
62
  const { isMainThread } = require('worker_threads');
63
63
  if (!isMainThread) {
64
- logger.warn(opts.message + ' (Native addons are currently not loaded in worker threads)');
64
+ // Fail silently, we currently do not want to send any metrics from a worker thread.
65
+ // (But see https://instana.kanbanize.com/ctrl_board/56/cards/48699/details/)
65
66
  loaderEmitter.emit('failed');
66
67
  return;
67
68
  }