X-Ray

Analyze and debug your applications

Docs | X-Ray console | Integrating with other services |

Overview

  • A service that collects data about requests that your application serves, and provides tools that you can use to view, filter, and gain insights into that data to identify issues and opportunities for optimization.

  • X-Ray creates a map of services used by your application with trace data. You can use the trace data to drill into specific services or issues. This data provides a view of connections between services in your application and aggregated data for each service, including average latency and failure rates.

Features

Environment variables

  • AWS_XRAY_CONTEXT_MISSING: X-ray SDK use this to determine behavior if your function try to record X-RAY data. Lambda set this to LOG_ERROR by default.

  • X_AMZN_TRACE_ID: used by Lambda to communicate with X-Ray.

Annotation for segment/subsegment

Segments and subsegments can include an annotations object containing one or more fields that X-Ray indexes for use with filter expressions.

Concepts

  • Active instrumentation: is like adding special code to your app that reports back every time something important happens, like a user logging in or a page loading.

  • Passive instrumentation: like putting a camera to watch what's happening in your app without actively changing or adding anything to it.

  • X-ray deamon: is an agent acts as a proxy between application being traced and X-Ray.

  • Segment: app you are tracing send data to X-Ray in a form of segment. A Segment is a JSON document, contains infor about the requests.

  • Subsegment: segment can breakdown to subsegment. Subsegments provide more granular timing information and details about downstream calls that your application made to fulfill the original request. A subsegment can contain additional details about a call to an AWS service, an external HTTP API, or an SQL database.

  • Trace: segment are grouped together call a trace.

  • Trace map: provides an end-to-end view of requests as they travel through your application services. Integrates Application Signals from CloudWatch to discover and monitor application services and dependencies across AWS services.

  • Trace call:

  • Group: a collection of traces that are defined by a filter expression. Groups are identified by their name or an ARN and contain a filter expression.

Last updated