aws-xray-sdk-fetch
Advanced tools
Comparing version 3.7.0 to 3.8.0
@@ -107,9 +107,7 @@ /** | ||
let traceHeader = 'Root=' + (parent.segment ? parent.segment : parent).trace_id; | ||
if (!(parent && parent.noOp)) { | ||
traceHeader += ';Parent=' + subsegment.id + ';Sampled=' + (subsegment.notTraced ? '0' : '1'); | ||
} | ||
request.headers.set('X-Amzn-Trace-Id', | ||
'Root=' + (parent.segment ? parent.segment : parent).trace_id + | ||
';Parent=' + subsegment.id + | ||
';Sampled=' + (subsegment.notTraced ? '0' : '1')); | ||
request.headers.set('X-Amzn-Trace-Id', traceHeader); | ||
// Set up fetch call and capture any thrown errors | ||
@@ -116,0 +114,0 @@ const capturedFetch = async () => { |
{ | ||
"name": "aws-xray-sdk-fetch", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "AWS X-Ray plugin for node-fetch", | ||
@@ -24,3 +24,3 @@ "author": "Amazon Web Services", | ||
"peerDependencies": { | ||
"aws-xray-sdk-core": "^3.7.0" | ||
"aws-xray-sdk-core": "^3.8.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "23ff8bb7321a9bc2e9edd42636b3714df6af8deb" | ||
"gitHead": "41a17d6a1b7e23279fa24061f0be757e3f5e5f18" | ||
} |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
23409
205