Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instana/core

Package Overview
Dependencies
Maintainers
3
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instana/core - npm Package Compare versions

Comparing version 1.88.1 to 1.89.0

src/tracing/instrumentation/process/childProcess.js

4

package.json
{
"name": "@instana/core",
"version": "1.88.1",
"version": "1.89.0",
"description": "Core library for Instana's Node.js packages",

@@ -136,3 +136,3 @@ "main": "src/index.js",

},
"gitHead": "fc6ff67e1ec8f697c4809eecabdbf61fbadec9e5"
"gitHead": "62cc1aae3f75ca0399548a34e0be700ecb7f74f0"
}

@@ -46,2 +46,5 @@ 'use strict';

'./instrumentation/messaging/natsStreaming',
'./instrumentation/process/childProcess',
'./instrumentation/process/edgemicro',
'./instrumentation/process/memored',
'./instrumentation/protocols/graphql',

@@ -48,0 +51,0 @@ './instrumentation/protocols/grpc',

@@ -43,6 +43,14 @@ 'use strict';

if (redis.Multi) {
shimmer.wrap(redis.Multi.prototype, 'exec_transaction', instrumentMultiExec.bind(null, true));
if (typeof redis.Multi.prototype.exec_transaction === 'function') {
// Very old redis versions (0.10.x) like the one used by a particular edgemicro plug-in (volos-quota-redis) do not
// have the exec_transaction method. Shimming this conditionally is not really necessary (shimmer checks for
// itself) but supresses a log statement from shimmer.
shimmer.wrap(redis.Multi.prototype, 'exec_transaction', instrumentMultiExec.bind(null, true));
}
var instrumentedBatch = instrumentMultiExec.bind(null, false);
shimmer.wrap(redis.Multi.prototype, 'exec_batch', instrumentedBatch);
if (typeof redis.Multi.prototype.exec_batch === 'function') {
// Old versions of redis also do not have exec_batch. See above (exec_transaction).
shimmer.wrap(redis.Multi.prototype, 'exec_batch', instrumentedBatch);
}
shimmer.wrap(redis.Multi.prototype, 'EXEC', instrumentedBatch);

@@ -49,0 +57,0 @@ shimmer.wrap(redis.Multi.prototype, 'exec', instrumentedBatch);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc