Troubleshooting Amazon Simple Queue Service queues using Amazon X-Ray
Amazon X-Ray collects data about requests that your application serves and lets you view and filter data to identify potential issues and opportunities for optimization. For any traced request to your application, you can see detailed information about the request, the response, and the calls that your application makes to downstream Amazon resources, microservices, databases and HTTP web APIs.
To send Amazon X-Ray trace headers through Amazon SQS, you can do one of the following:
-
Use the
X-Amzn-Trace-Id
tracing header. -
Use the
AWSTraceHeader
message system attribute.
To collect data on errors and latency, you must instrument the AmazonSQS
client using the Amazon X-Ray SDK.
You can use the Amazon X-Ray console to view the map of connections between Amazon SQS and other services that your application uses. You can also use the console to view metrics such as average latency and failure rates. For more information, see Amazon SQS and Amazon X-Ray in the Amazon X-Ray Developer Guide.