@instana/core
Advanced tools
Comparing version 1.106.1 to 1.106.2
{ | ||
"name": "@instana/core", | ||
"version": "1.106.1", | ||
"version": "1.106.2", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -136,3 +136,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "b1a1c2f0a7a9c1e0d9fcf52359128c1f561e9d24" | ||
"gitHead": "be32e51b452496357a3ad7adf522bdbbc93518a9" | ||
} |
@@ -40,3 +40,3 @@ 'use strict'; | ||
return function() { | ||
if (isActive && cls.isTracing()) { | ||
if (isActive) { | ||
const originalArgs = new Array(arguments.length); | ||
@@ -55,4 +55,8 @@ for (let i = 0; i < arguments.length; i++) { | ||
if (cls.tracingSuppressed()) { | ||
propagateSuppression(originalArgs[0]); | ||
propagateSuppression(originalArgs[1]); | ||
} | ||
if ( | ||
!cls.isTracing() || // | ||
!parentSpan || // | ||
@@ -114,3 +118,3 @@ // allow rabbitmq parent exit spans, this is actually the span started in instrumentedChannelModelPublish | ||
function setHeaders(map, span) { | ||
if (!map || !map.headers || tracingUtil.readAttribCaseInsensitive(map.headers, constants.traceLevelHeaderName)) { | ||
if (!map || !map.headers) { | ||
return; | ||
@@ -123,2 +127,9 @@ } | ||
function propagateSuppression(map) { | ||
if (!map || !map.headers) { | ||
return; | ||
} | ||
map.headers[constants.traceLevelHeaderName] = '0'; | ||
} | ||
function shimDispatchMessage(originalFunction) { | ||
@@ -389,3 +400,3 @@ return function() { | ||
if (!cls.isTracing() || constants.isExitSpan(parentSpan)) { | ||
if (!parentSpan || constants.isExitSpan(parentSpan)) { | ||
return originalFunction.apply(ctx, originalArgs); | ||
@@ -392,0 +403,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
378614
10257