AWS X-Ray FAQs

NA"},"metadata":{"tags":[{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"What is AWS X-Ray?","id":"product-faqs#what-is-aws-xray","customSortOrder":"1","content":"

AWS X-Ray helps developers analyze and debug production, distributed applications, such as those built using a microservices architecture. With X-Ray, you can understand how your application and its underlying services are performing to identify and troubleshoot the root cause of performance issues and errors. X-Ray provides an end-to-end view of requests as they travel through your application, and shows a map of your application’s underlying components. You can use X-Ray to analyze both applications in development and in production, from simple three-tier applications to complex microservices applications consisting of thousands of services."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#general","name":"General","namespaceId":"product-faqs#xray-faqs","description":"

Genaral tag for x-ray FAQs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"How do I get started with X-Ray?","id":"product-faqs#how-do-i-get-started-with-xray","customSortOrder":"1","content":"

You can get started with X-Ray by including the X-Ray language SDK in your application and installing the X-Ray daemon. For more information see the X-Ray user guide."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#using-aws-x-ray","name":"Using AWS X-Ray","namespaceId":"product-faqs#xray-faqs","description":"

Using AWS X-Ray tag for X-Ray FAQs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"In which regions is X-Ray available?","id":"product-faqs#in-which-regions-is-xray-available","customSortOrder":"1","content":"

See Regional Products and Services for details."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#regions","name":"Regions","namespaceId":"product-faqs#xray-faqs","description":"

Regions tag for x-ray faqs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"How long does it take for trace data to be available in X-Ray?","id":"product-faqs#how-long-does-it-take-for-tracce-data","customSortOrder":"1","content":"

Trace data sent to X-Ray is generally available for retrieval and filtering within 30 seconds of it being received by the service."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#data-handling","name":"Data handling","namespaceId":"product-faqs#xray-faqs","description":"

data handling tag for X-Ray faqs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"What is a trace?","id":"product-faqs#what-is-a-trace","customSortOrder":"1","content":"

An X-Ray trace is a set of data points that share the same trace ID. For example, when a client makes a request to your application, it is assigned a unique trace ID. As the request makes its way through services in your application, the services relay information regarding the request back to X-Ray using this unique trace ID. The piece of information relayed by each service in your application to X-Ray is a segment, and a trace is a collection of segments."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#core-concepts","name":"Core Concepts","namespaceId":"product-faqs#xray-faqs","description":"

Core Concepts tag for X-Ray FAQs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"Why should I use X-Ray?","id":"product-faqs#why-should-i-use-xray","customSortOrder":"2","content":"

Currently, if you build and run distributed applications, you have to rely on a per-service or per-resource process to track requests for your application as it travels across various components that make up your application. This problem is further complicated by the varying log formats and storage mediums across frameworks, services, and resources your application runs on or uses. This makes it difficult to correlate the various pieces of data and create an end-to-end picture of a request from the time it originates at the end-user or service to when a response is returned by your application. X-Ray provides a user-centric model, instead of service-centric or resource-centric model, for collecting data related to requests made to your application. This model enables you to create a user-centric picture of requests as they travel across services and resources. By correlating and aggregating data on your behalf, X-Ray enables you to focus on improving the experience for end-users of your application."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#general","name":"General","namespaceId":"product-faqs#xray-faqs","description":"

Genaral tag for x-ray FAQs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"What types of applications can I use with X-Ray?","id":"product-faqs#what-types-of-applications-can-i-use-with-xray","customSortOrder":"2","content":"

X-Ray can be used with distributed applications of any size to trace and debug both synchronous requests and asynchronous events. For example, X-Ray can be used to trace web requests made to a web application or asynchronous events that utilize Amazon SQS queues."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#using-aws-x-ray","name":"Using AWS X-Ray","namespaceId":"product-faqs#xray-faqs","description":"

Using AWS X-Ray tag for X-Ray FAQs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"Can I use X-Ray to track requests from applications or services spread across multiple regions?","id":"product-faqs#can-i-use-xray-to-track-requests","customSortOrder":"2","content":"

Yes, you can use X-Ray to track requests flowing through applications or services across multiple regions. X-Ray data is stored locally to the processed region but with enough information to enable client applications to combine the data and provide a global view of traces. Region annotation for AWS services will be added automatically, however, customers will need to instrument custom services to add the regional annotation to make use of the cross-region support."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#regions","name":"Regions","namespaceId":"product-faqs#xray-faqs","description":"

Regions tag for x-ray faqs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"How far back can I query the trace data? How long does X-Ray store trace data for?","id":"product-faqs#how-far-back-can-i-query","customSortOrder":"2","content":"

X-Ray stores trace data for the last 30 days. This enables you to query trace data going back 30 days."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#data-handling","name":"Data handling","namespaceId":"product-faqs#xray-faqs","description":"

data handling tag for X-Ray faqs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"What is a segment?","id":"product-faqs#what-is-a-segment","customSortOrder":"2","content":"

An X-Ray segment encapsulates all the data points for a single component (for example, authorization service) of the distributed application. Segments include system-defined and user-defined data in the form of annotations and are composed of one or more sub-segments that represent remote calls made from the service. For example, when your application makes a call to a database in response to a request, it creates a segment for that request with a sub-segment representing the database call and its result. The sub-segment can contain data such as the query, table used, timestamp, and error status."},"metadata":{"tags":[{"id":"product-faqs#xray-faqs#core-concepts","name":"Core Concepts","namespaceId":"product-faqs#xray-faqs","description":"

Core Concepts tag for X-Ray FAQs","metadata":{}},{"id":"GLOBAL#product#xray","name":"AWS X-Ray","namespaceId":"GLOBAL#product","description":"AWS X-Ray","metadata":{}}]}},{"fields":{"topic":"What can I do with X-Ray?","id":"product-faqs#what-can-i-do-with-xray","customSortOrder":"3","content":"

X-Ray makes it easy for you to: \n