@instana/core
Advanced tools
Comparing version 1.92.5 to 1.93.0
{ | ||
"name": "@instana/core", | ||
"version": "1.92.5", | ||
"version": "1.93.0", | ||
"description": "Core library for Instana's Node.js packages", | ||
@@ -136,3 +136,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "50bec8353a5973e8a59ae92e65a74c02d40d730a" | ||
"gitHead": "0d01c45b54c3498718d3f46b448a0e87c2e27587" | ||
} |
@@ -85,19 +85,6 @@ 'use strict'; | ||
var w3cTraceContext = cls.getW3cTraceContext(); | ||
var parentSpan = cls.getCurrentSpan() || cls.getReducedSpan(); | ||
if (!isActive || !cls.isTracing()) { | ||
if (!isActive || !parentSpan || constants.isExitSpan(parentSpan)) { | ||
var traceLevelHeaderHasBeenAdded = false; | ||
if (cls.tracingLevel()) { | ||
traceLevelHeaderHasBeenAdded = tryToAddTraceLevelAddHeaderToOpts(options, cls.tracingLevel(), w3cTraceContext); | ||
} | ||
clientRequest = originalRequest.apply(coreModule, arguments); | ||
if (cls.tracingLevel() && !traceLevelHeaderHasBeenAdded) { | ||
clientRequest.setHeader(constants.traceLevelHeaderName, cls.tracingLevel()); | ||
setW3cHeadersOnRequest(clientRequest, w3cTraceContext); | ||
} | ||
return clientRequest; | ||
} | ||
var parentSpan = cls.getCurrentSpan(); | ||
if (constants.isExitSpan(parentSpan)) { | ||
if (cls.tracingSuppressed()) { | ||
@@ -104,0 +91,0 @@ traceLevelHeaderHasBeenAdded = tryToAddTraceLevelAddHeaderToOpts(options, '0', w3cTraceContext); |
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
321671
8709