X-Ray Flashcards
This AWS service helps you debug and analyze your microservices applications with request tracing
AWS X-Ray - Distributed Tracing System
Which 2 AWS services come with a built in X-Ray Daemon?
- EB
- Lambda
On AWS Lambda and AWS Elastic Beanstalk, use those services’ integration with X-Ray to run the daemon. Lambda runs the daemon automatically any time a function is invoked for a sampled request. On Elastic Beanstalk, use the XRayEnabled configuration option to run the daemon on the instances in your environment.
What are some common X-Ray components?
There are 10 items in the answer
- Segments
- Subsegments
- Service graph
- Traces
- Sampling
- Tracing header
- Filter expressions
- Groups
- Annotations and metadata
- Errors, faults, and exceptions
https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html
X-Ray Concepts
What can you find in a Segment?
The compute resources running your application logic send data about their work as segments.
There are 5 elements in the answer
The host – hostname, alias or IP address
The request – method, client address, path, user agent
The response – status, content
The work done – start and end times, subsegments
Issues that occur – errors, faults and exceptions, including automatic capture of exception stacks.
In X-Ray these key-value pairs are indexed for use in filter expressions and allow grouping traces in the console
Annotations
When an exception occurs what information does X-Ray record?
Exception Details
Billing Amount
Stack Trace
Commit Author
Exception Details
Stack Trace
What are some of the services that integrate directly with X-Ray?
- AWS X-Ray helps developers analyze and debug production
- There are 13 services on the Cheat sheet
- SNS
- Lambda
- SQS
- Lambda
- Api Gateway
- EB
- ELB
- Fargate
…
What is X-Ray?
What are its 2 elements?
- It’s a service that helps developers analyze and debug applications that utilize microservice architecture
- Daemon
- X-ray components