Skip to the content.
AWS Developer Associate

AWS X-Ray

Advantages of X-Ray

Compatibility

X-Ray leverages Tracing

How to enable X-Ray

  1. Your code (Java, Python, Go, Node.js, .NET) must import the AWS X-Ray SDK
    • Very little code modification needed
    • The application SDK will then capture:
    • Calls to AWS services
    • HTTP / HTTPS requests
    • Database Calls (MySQL, PostgreSQL, DynamoDB)
    • Queue calls (SQS)
  2. Install the X-Ray daemon or enable X-Ray AWS Integration
    • X-Ray daemon works as a low level UDP packet interceptor (Linux / Windows / Mac…)
    • AWS Lambda / other AWS services already run the X-Ray daemon for you
    • Each application must have the IAM rights to write data to X-Ray

X-Ray’s internal magic

AWS X-Ray Troubleshooting

X-Ray Instrumentation

X-Ray Sampling Rules

X-Ray Write APIs

X-Ray Read APIs