Viewing traces and trace details
Use the Traces page in the X-Ray console to find traces by URL, response code, or other data from the trace summary. After selecting a trace from the trace list, the Trace details page displays a map of service nodes involved in the selected trace, along with a timeline of trace segments.
Viewing traces
Exploring the trace timeline
The Timeline section shows a hierarchy of segments and subsegments. The first entry in the list is the segment, which represents all data recorded by the service for a single request. Below the segment are subsegments.
The X-Ray SDK records subsegments automatically when you use an instrumented AWS SDK, HTTP, or SQL client to make calls to external resources. You can also tell the SDK to record custom subsegments for any function or block of code. Additional subsegments recorded while a custom subsegment is open become children of the custom subsegment.
Viewing segment details
From the trace timeline, choose the name of a segment to view its details. There are multiple tabs which display segment information.

-
The Overview tab shows information about the request and response.
-
The Resources tab for a segment shows information about the AWS resources running your application and the X-Ray SDK. Use the Amazon EC2, AWS Elastic Beanstalk, or Amazon ECS plugin for the SDK to record service-specific resource information.
-
The remaining tabs show Annotations, Metadata, and Exceptions recorded on the segment. Exceptions are captured automatically when thrown from an instrumented request. Annotations and metadata contain additional information that you record by using the methods that the SDK provides.
Viewing subsegment details
From the trace timeline, choose the name of a subsegment to view its details:
-
For subsegments generated with instrumented clients, the Overview tab contains information about the request and response from your application's point of view.
-
The Resources tab for a subsegment shows details about the DynamoDB table, operation called, and request ID.
For custom subsegments, the Overview tab shows the name of the subsegment, which you can set to specify the area of the code or function that it records.

Use custom subsegments to organize subsegments from instrumented clients into groups. You can also record metadata and annotations on subsegments, which can help you debug functions.

In this example, the application records the state of each Game
object that it saves to DynamoDB. It
does this by passing the object into the putMetadata
method on the subsegment. The X-Ray SDK
serializes the object into JSON and adds it to the segment document.