Skip to content

Tracer: How do I pass in parent trace IDs from SQS AWSTraceHeader? #1235

Closed Answered by heitorlessa
goudhabuddha asked this question in Q&A
Discussion options

You must be logged in to vote

The AWS X-Ray team is working on that, please email your AWS Account representatives to add your company +1.

Background: AWS Lambda service creates an immutable root segment (segment). When your function is executed, you won't be able to mutate to course correct the trace as the original documentation suggests - that is only possible when you're not using Lambda. Because multiple SQS messages might contain different traces, it is not a trivial problem for them to solve as the Lambda being invoked may not be connected to their respective parent segment.

Once this is solved by the AWS X-Ray team we should see it automatically resolved in both Lambda Powertools, AWS X-Ray SDK, and any other …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by heitorlessa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants