aws / aws-xray-sdk-node

The official AWS X-Ray SDK for Node.js.
Apache License 2.0
266 stars 155 forks source link

Lambda PassThrough trace header support #660

Closed majanjua-amzn closed 2 months ago

majanjua-amzn commented 2 months ago

Lambda trace header with passthrough will be missing parent and sampled attributes, we should be able to support this.

Description of changes:

Testing: Tested appropriate behaviour using two lambda functions:

And tested combinations of the following:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.57%. Comparing base (1502470) to head (5cc208c).

:exclamation: Current head 5cc208c differs from pull request most recent head dd12415

Please upload reports for the commit dd12415 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #660 +/- ## ========================================== + Coverage 83.49% 83.57% +0.07% ========================================== Files 37 37 Lines 1806 1814 +8 ========================================== + Hits 1508 1516 +8 Misses 298 298 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.