X-Ray Flashcards
What is the X-Ray Daemon?
A software application that listens for traffic on UDP 2000, receives segment data, and passes it to the X-Ray API
Two ways to send trace data to X-Ray (as Segment “documents”)
- X-Ray Daemon, which will package in batches and send to the SDK
- Directly through the “PUT TRACE SEGMENTS” API
Use case for two Lambda X-Ray-related environmental variables:L XRAY_AMZN_TRACE_ID and AWS_XRAY_CONTEXT_MISSING
_XRAY_AMZN_TRACE_ID: set automatically when X-Ray is enabled
AWS_XRAY_CONTEXT_MISSING: includes values (instructions) that tells the SDK what to do if a downstream tracing header is not present
What is a “namespace” in X-Ray, and how does it relate to diagnosing the nature of a trace?
In AWS X-Ray, a “namespace” is a concept that categorizes a segment or subsegment to provide clarity about its type or source. The namespace can be set to:
aws: Indicates the segment or subsegment represents a call to an AWS service.
remote: Indicates the segment or subsegment represents a call to a non-AWS service or any other downstream remote system.
X-Ray “BatchGetTraces” versus “GetTraceSummaries” APIs
GetTraceSummaries retrieves summary data about a lot of traces
BatchGetTraces provides more-detailed information, but only about trace(s) you specify.