X-Ray Analytics

X-Ray Analytics is a powerful tool that can help you debug and identify issues quickly. Take some time and look around the options available for you to work with.

  1. In the AWS Management Console on the Services menu, navigate to X-Ray.
  2. Click on Analytics from the left navigation menu.

Your screen should look similar to the screenshot below. XRayAnalytics

Filtering traces

In the screenshot above you can see that there are certain traces that exhibit a higher latency (in the order of 3 seconds or more) compared to others. In this section we will filter for those traces and find out the root cause.

Remember that there are a variety of options available for you to filter traces. We will use the Response time distribution table to filter the traces because we are investigating a higher latency scenario.

  1. Select the area of the graph where you see higher latency as shown below.

XRayResponseTimeDistribution

In the example for this section, about 56% of the traces were included the PetType=bunny querystring in the url.

  • Note: you may experience differt results than the ones shown above
  1. Click on one of the urls in the list.

This will apply another filter on the already filtered traces and show a screen like the one below.

XRayFitleredLatency

  1. Scroll down to see that the root cause for latency has been automatically identified by X-Ray Analytics based on the trace data captured. Refer to the screenshot below for guidance. XRayFitleredLatencyDetails

Compare two sets of traces

Using the Analytics console you can also compare two sets of traces with different conditions for root cause analysis purposes.

  1. With the one set of filters already applied, click on the Compare box at the top right of the Analytics page.

This will create trace set B and color the traces green on the response time distribution graph. By default, X-Ray will create another set of with the same filter conditions as trace set A.

CompareTraces

CompareTraces2

This concludes this section. You may continue on to the next section.