@instana/aws-lambda
Advanced tools
Comparing version 2.10.0 to 2.11.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.11.0](https://github.com/instana/nodejs/compare/v2.10.0...v2.11.0) (2022-11-04) | ||
### Bug Fixes | ||
* **serverless:** do not send x-instana-time header ([7ce7673](https://github.com/instana/nodejs/commit/7ce7673a514069b47c5b883faa9d86bc240244b6)) | ||
# [2.10.0](https://github.com/instana/nodejs/compare/v2.9.0...v2.10.0) (2022-10-06) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@instana/aws-lambda", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"description": "Instana tracing and monitoring for Node.js based AWS Lambdas", | ||
@@ -71,4 +71,4 @@ "author": { | ||
"dependencies": { | ||
"@instana/core": "2.10.0", | ||
"@instana/serverless": "2.10.0" | ||
"@instana/core": "2.11.0", | ||
"@instana/serverless": "2.11.0" | ||
}, | ||
@@ -78,3 +78,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "5f25a6d46370feaed952d85b5f891e57bc64512e" | ||
"gitHead": "c326cc5b0ce29b5ca89158b128d192750b243600" | ||
} |
@@ -340,25 +340,10 @@ /* | ||
const traceCorrelationData = {}; | ||
traceCorrelationData.traceId = readSqsMessageAttributeWithFallback( | ||
attributes, | ||
tracingConstants.sqsAttributeNames.TRACE_ID, | ||
tracingConstants.sqsAttributeNames.LEGACY_TRACE_ID | ||
); | ||
traceCorrelationData.parentId = readSqsMessageAttributeWithFallback( | ||
attributes, | ||
tracingConstants.sqsAttributeNames.SPAN_ID, | ||
tracingConstants.sqsAttributeNames.LEGACY_SPAN_ID | ||
); | ||
traceCorrelationData.level = readSqsMessageAttributeWithFallback( | ||
attributes, | ||
tracingConstants.sqsAttributeNames.LEVEL, | ||
tracingConstants.sqsAttributeNames.LEGACY_LEVEL | ||
); | ||
traceCorrelationData.traceId = readSqsMessageAttribute(attributes, tracingConstants.sqsAttributeNames.TRACE_ID); | ||
traceCorrelationData.parentId = readSqsMessageAttribute(attributes, tracingConstants.sqsAttributeNames.SPAN_ID); | ||
traceCorrelationData.level = readSqsMessageAttribute(attributes, tracingConstants.sqsAttributeNames.LEVEL); | ||
return traceCorrelationData; | ||
} | ||
function readSqsMessageAttributeWithFallback(messageAttributes, key, keyFallback) { | ||
return ( | ||
readSqsStringMessageAttribute(messageAttributes, key) || | ||
readSqsStringMessageAttribute(messageAttributes, keyFallback) | ||
); | ||
function readSqsMessageAttribute(messageAttributes, key) { | ||
return readSqsStringMessageAttribute(messageAttributes, key); | ||
} | ||
@@ -365,0 +350,0 @@ |
60351
1264
+ Added@instana/core@2.11.0(transitive)
- Removed@instana/core@2.10.0(transitive)
Updated@instana/core@2.11.0
Updated@instana/serverless@2.11.0