lumigo-io / lumigo-node

Lumigo's Node.js Distributed Tracing and Performance Agent
https://lumigo.io
Apache License 2.0
76 stars 12 forks source link

fix: support new x ray format nodejs #519

Closed sagivoululumigo closed 1 month ago

sagivoululumigo commented 1 month ago

Fixes Issue

AWS is planning on releasing a change to the format of the X-Ray Trace ID value, and we need to support the new format (And the old one to support the transition phase).

AWS is removing the Parent and Sampled fields from any lambda that is set to passive tracing (the default). The old format is:

Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1;Lineage=a87bd80c:1|68fd508a:5|c512fbe3:2

And the new format will be:

Root=1-5759e988-bd862e3fe1be46a994272793;Lineage=a87bd80c:1|68fd508a:5|c512fbe3:2

Notes:

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 99.31%. Comparing base (4e438b5) to head (635bdb8). Report is 573 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #519 +/- ## =========================================== - Coverage 100.00% 99.31% -0.69% =========================================== Files 19 42 +23 Lines 1165 2767 +1602 Branches 246 767 +521 =========================================== + Hits 1165 2748 +1583 - Misses 0 18 +18 - Partials 0 1 +1 ```

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

lumigo-circleci-github-user commented 1 month ago

:tada: This PR is included in version 1.101.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: