Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

AWS Serverless Distributed Tracing With X-Rays


AWS X-Ray

AWS X-Ray provides distributed tracing for every Lambda function or API stage in API Gateway.

A Trace collects all request segments.

A segment is a part of a request.

It also works with Amazon SNS to track messages.


Distributed Tracing with AWS X-Ray Video

W3schools.com collaborates with Amazon Web Services to deliver digital training content to our students.


Distributed Tracing

Distributed tracing with AWS X-Rays is a best practice for event-driven, separated applications.

Tracing headers may be retrieved and propagated using the trace ID.

The SDK provides data about incoming and outgoing requests to the X-Ray in batches to X-Ray.

The X-Ray receives data from services as segments and organizes them into traces.

In each service integration point, it builds a graph including successful and failed calls.

It automatically indexes key-value pairs with text, integer, or Boolean values.

Some services generate subsegments automatically.

Subsegments can let you see application performance at a finer level.

Subsegments can also be used to debug or annotate code blocks.


Related reads:

AWS X-Ray Developer Guide
Tracing Lambda-Based Applications with AWS X-Ray
Viewing the Trace Map

AWS Serverless Exercises

Test Yourself With Exercises

Exercise:

What is a segment?

A part of a 

Start the Exercise