Tracing Java Applications with AWS X-Ray

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Opening the AWS Cloud9 IDE
lock
Installing the Required Tools
lock
Configuring the AWS DynamoDB SDK and AWS X-Ray SDK
lock
Initiating the DynamoDB Client and Configuring the Segments
lock
Starting X-Ray Daemon and Testing the Application
lock
Finding and Understanding the Traces in the AWS Console

The hands-on lab is part of this learning path

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h
Students163
Ratings
4.2/5
starstarstarstarstar-half

Description

In this lab, you will be instrumenting a Spring Application that you will create in Cloud9 IDE which has APIs to insert data in a DynamoDB table and fetch the data from the table. AWS X-Ray helps you analyze your applications, it will help you understand how your application is performing. You will be able to troubleshoot the errors very easily. There are multiple ways for how you can instrument your application. In this lab, you will be using manual instrumentation.

There are a few definitions you should understand before starting the lab:

  • Traces are used to track the path followed by a request in your application.
  • Segments provide basic details about the resource name, details about the request. Segments can be broken into subsegments to provide more granular details about the request.

Learning Objectives

Upon completion of this lab you will be able to:

  • Insert data into DynamoDB tables
  • Fetch data from DynamoDB tables
  • Instrument applications with AWS X-Ray

Intended Audience

This lab is intended for:

  • QA engineers
  • Software Developers
  • Anyone interested in debugging

Prerequisites

You should possess:

  • A basic understanding of Java
  • A basic understanding of the Spring Boot framework is helpful but not required
  • A basic understanding of using AWS SDK is helpful but not required

The following labs can be used to fulfil the prerequisites:

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students34932
Labs86
Courses2
Learning paths2

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.