Member-only story
AWS X-Ray: Understanding Concepts and Functionality
AWS X-Ray is a service designed to gather data on the requests handled by your application. It offers a set of tools for viewing, filtering, and extracting insights from this data, enabling the identification of issues and opportunities for optimization. When tracing a request to your application, you can access comprehensive information not only about the request and its response but also about the calls your application initiates to downstream AWS resources, microservices, databases, and web APIs.
Segments
The computational components executing your application’s logic communicate information about their tasks in the form of segments. Each segment includes crucial details such as the resource’s name, specifics about the request, and information about the performed work. To illustrate, when an HTTP request arrives at your application, it can capture various data points, including the host information (hostname, alias, or IP address), details about the request itself (method, client address, path, user agent), the response details (status, content), the duration of the work (start and end times), and further breakdowns into subsegments. Additionally, the system is equipped to automatically capture issues that arise during the process, encompassing errors, faults, and exceptions, and it even captures exception stacks for…