@instana/core
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [4.1.0](https://github.com/instana/nodejs/compare/v4.0.1...v4.1.0) (2024-11-19) | ||
### Features | ||
- added support for graphql-subscriptions v3 ([#1446](https://github.com/instana/nodejs/issues/1446)) ([e4a978c](https://github.com/instana/nodejs/commit/e4a978cf517de3c3fb1dd8bf27f1ba7c5632017a)) | ||
## [4.0.1](https://github.com/instana/nodejs/compare/v4.0.0...v4.0.1) (2024-10-28) | ||
@@ -8,0 +14,0 @@ |
{ | ||
"name": "@instana/core", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -16,3 +16,3 @@ "main": "src/index.js", | ||
"audit": "npm audit --omit=dev", | ||
"test": "USE_OPENTRACING_DEBUG_IMPL=true mocha --config=test/.mocharc.js --reporter mocha-multi-reporters --reporter-options configFile=reporter-config.json --sort $(find test -iname '*test.js')", | ||
"test": "USE_OPENTRACING_DEBUG_IMPL=true mocha $npm_config_watch --config=test/.mocharc.js --reporter mocha-multi-reporters --reporter-options configFile=reporter-config.json --sort $(find test -iname '*test.js')", | ||
"test:debug": "WITH_STDOUT=true npm run test", | ||
@@ -76,3 +76,3 @@ "test:ci": "mocha --config=test/.mocharc.js --reporter mocha-multi-reporters --reporter-options configFile=reporter-config.json 'test/**/*test.js'", | ||
}, | ||
"gitHead": "67d792958e4031e600dff3fd4d4fc5e91093e960" | ||
"gitHead": "661e207ab1d53b4c28131ed47061ddf8c6befe87" | ||
} |
@@ -19,2 +19,6 @@ /* | ||
hook.onModuleLoad('graphql-subscriptions', instrumentModule); | ||
// In v3, pubsub-async-iterator is replaced with pubsub-async-iterable-iterator | ||
hook.onFileLoad(/\/graphql-subscriptions\/dist\/pubsub-async-iterable-iterator\.js/, instrumentAsyncIterableIterator); | ||
// In v2, pubsub-async-iterator is available | ||
hook.onFileLoad(/\/graphql-subscriptions\/dist\/pubsub-async-iterator\.js/, instrumentAsyncIterator); | ||
@@ -44,2 +48,7 @@ }; | ||
function instrumentAsyncIterableIterator(pubSubAsyncIterator) { | ||
shimmer.wrap(pubSubAsyncIterator.PubSubAsyncIterableIterator.prototype, 'pushValue', shimPushValue); | ||
shimmer.wrap(pubSubAsyncIterator.PubSubAsyncIterableIterator.prototype, 'pullValue', shimPullValue); | ||
} | ||
function shimPushValue(originalFunction) { | ||
@@ -50,2 +59,3 @@ return function (event) { | ||
} | ||
return originalFunction.apply(this, arguments); | ||
@@ -52,0 +62,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
786609
20057