How to trace a request through an SQS queue with AWS X-Ray
Even though SQS supports X-Ray tracing now, it doesn't propagate the trace to a lambda function. That's why with SQS->Lambda setup, Lambda always starts a new trace. There is an issue for it in the nodejs xray SDK https://github.com/aws/aws-xray-sdk-node/issues/208
As of today, AWS X-Ray now has native support for Amazon SQS: https://aws.amazon.com/about-aws/whats-new/2019/08/aws-x-ray-now-supports-amazon-sqs/