X-Ray
- Visual analysis of our application
- Good for production debugging
- find erros, exceptions
- trouble shoot bottle necks, measure performance (instrumentation), ...
- Compatible with almost all services even with on-premises
- Used Tracing (end-end way to follow a request) to trace error
- Support IAM for authorisation and KMS for encption at rest
Enable Xray
- Import X-Ray SDK
- Install X-Ray daemon or enable X-Ray AWS integration on server
- daemon work as a low level UDP packet interceptor
- has config to send traces across all account
- Allows to have a central account for all application tracing
- Make sure IAM permissions are correct as the agent will assume role
- Each application must have IAM rights to write data to X-Ray
Concept
- Segments: segment of information in the UI
- Subsegments: if you need more details
- Trace: segments collected together to create end-end trace
- Sampling: to decrease amount of requests sent to X-Ray to reduce cost
- Annotations: Key value pair to index traces use with filters
- Metadata: Key value pairs, not-index cannot be used for searching