AWS Serverless X-Ray Logging and Monitoring
Description
In the rapidly evolving landscape of cloud computing, serverless architecture has emerged as a revolutionary paradigm, enabling developers to focus on writing code without the hassle of managing servers. However, as applications become more distributed and complex, monitoring, analyzing, and troubleshooting performance issues become paramount.
In this hands-on lab you’ll learn how to instrument a lambda function using AWS X-Ray, allowing you to analyze and observe the distributed tracing and related metrics inside the AWS X-Ray console later. By doing this, you’ll be able to visualize and understand the interactions between the various serverless components. You’ll work with the AWS X-Ray console to trace requests, identify bottlenecks, and gain other valuable insights into the behavior of a distributed serverless application.
Learning objectives
Upon completion of this intermediate-level lab, you will:
- Understand the basic steps and process to setup and deploy a Python3 Lambda function
- Understand how to instrument the Python3 Lambda source code to work with AWS X-Ray
- Understand how to use the AWS X-Ray console to visualize connections between components
- Understand how to perform distributed tracing
- Understand how to collect and analyze logging information using Amazon CloudWatch
Intended audience
- Cloud Architects
- DevOps Engineers
- Software Engineers
Prerequisites
Familiarity with the following will be beneficial but is not required:
- AWS Lambda
- AWS X-Ray
- Amazon CloudWatch
The following content can be used to fulfill the prerequisites: