100% found this document useful (1 vote)
167 views22 pages

DOP327-R2 - Monitoring and Observability of Serverless Apps Using AWS X-Ray

This document discusses monitoring and observability of serverless applications using AWS X-Ray. It provides an overview of serverless architectures and why they are used. It then describes how AWS X-Ray works, how it instruments code, and how it integrates with other AWS services to provide end-to-end tracing of requests across serverless applications. The presentation concludes with a demo of X-Ray's capabilities for auto-instrumentation and advanced nested traces of serverless architectures.

Uploaded by

Tony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
167 views22 pages

DOP327-R2 - Monitoring and Observability of Serverless Apps Using AWS X-Ray

This document discusses monitoring and observability of serverless applications using AWS X-Ray. It provides an overview of serverless architectures and why they are used. It then describes how AWS X-Ray works, how it instruments code, and how it integrates with other AWS services to provide end-to-end tracing of requests across serverless applications. The presentation concludes with a demo of X-Ray's capabilities for auto-instrumentation and advanced nested traces of serverless architectures.

Uploaded by

Tony
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

DOP327-R

Monitoring and observability of


serverless apps using AWS X-Ray
Shengxin Li Sirirat Kongdee Eric Scholz
Software Development Solutions Architect Solutions Architect
Engineer Amazon Web Services Amazon Web Services
Amazon Web Services

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Introduction to serverless application

AWS X-Ray overview

Demo

Q&A
What is serverless?
and
Why serverless?
Image source: https://pixabay.com/photos/question-mark-why-problem-solution-2123967/
What is serverless?

No infrastructure provisioning, Automatic scaling


no management

Pay for value Highly available and secure


Compute

AWS AWS
Lambda Fargate

Data stores

Amazon Amazon Aurora Amazon


S3 Serverless DynamoDB

Integration

Amazon Amazon Amazon AWS AWS


API Gateway SQS SNS Step Functions AppSync
Serverless architecture
AWS

API AWS Lambda


Gateway functions
Mobile apps cache

S3 bucket

Websites AWS Fargate

Internet Amazon
CloudFront
DynamoDB

Services
Regional API endpoints Any other
Amazon CloudWatch AWS service
monitoring
API Gateway

Lambda function SQS Queue How do I monitor


and debug my
SNS Topic EC2 Instance
serverless
API Gateway
application?

Lambda function S3 Bucket


AWS Fargate

DynamoDB
Monitoring and observability

Amazon CloudWatch AWS X-Ray

Collects monitoring Provides a trace or an


and operational data end-to-end view of
in the form of logs, requests traveling
metrics, and events through your application
AWS X-Ray overview

AWS X-Ray helps developers analyze and debug applications


built using microservices architecture to identify the root cause
and end-user impact
AWS X-Ray is built for modern applications

Analyze and debug End-to-end view of Identify customer Support for


issues quickly individual services impact serverless
How AWS X-Ray works
AWS X-Ray instrumentation

.NET Java
(with .NET Core 2.0) Go (beta)

Python Ruby (beta) Node.js


Strong open-
source community
Integrate with other AWS services

Amazon EC2 AWS App Mesh Amazon API Gateway

Other AWS services provide


integration with AWS X-Ray
by adding a tracing header to AWS CloudTrail AWS Config AWS Elastic Beanstalk
requests, running the X-Ray
daemon, or making sampling
decisions and uploading
trace data to X-Ray Amazon Simple Amazon Simple Elastic Load Balancing
Notification Service Queue Service

Amazon CloudWatch
AWS Lambda
AWS X-Ray concepts
AWS X-Ray concepts (continued)
• Service graph

• Sampling

• Tracing header

• Filter expression

• Groups

• Annotations and metadata

• Errors, faults, and exceptions


© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What we will be showing you:
Serverless architecture with X-Ray auto-instrumentation

Advanced nested architecture trace using X-Ray

Using CloudWatch with X-Ray


© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Learn DevOps with AWS Training and Certification
Resources created by the experts at AWS to propel your organization and career forward

Take free digital training to learn best practices for developing,


deploying, and maintaining applications

Classroom offerings, like DevOps Engineering on AWS,


feature AWS expert instructors and hands-on activities

Validate expertise with the AWS Certified DevOps Engineer - Professional


or AWS Certified Developer - Associate exams

Visit aws.amazon.com/training/path-developing/

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!

© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

You might also like