amazon-sqsamazon-snsaws-xray

AWS X-ray with SQS fanout pattern


I am trying to use x-ray to trace requests which use an SNS-SQS fanout pattern.

The request comes from API GW, lambda proxy integration, published to SNS and delivered to a subscribed SQS which has a lambda trigger which receives the messages for further processing.

However the trace stops at SNS.


Solution

  • Unfortunately we do not support this architecture today. The issue is that the trace information from the starting request (APIG in this case) is lost once the SNS message is invoked. There currently isn't a workaround for this behavior. We are working with SNS and SQS to provide a better user experience and support for these cases. Please stay tuned for more.