@instana/core
Advanced tools
Comparing version 1.88.1 to 1.89.0
{ | ||
"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); |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
294636
76
8089
24
7