Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

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