Home United States USA — software Distributed Tracing With Spring Cloud Jaeger

Distributed Tracing With Spring Cloud Jaeger

207
0
SHARE

In this article, learn how to implement Jaeger — which is based on OpenTracing with a Spring Boot application — and how to visualize the traces using Jaeger UI.
Join the DZone community and get the full member experience. In this article, we will explore how to implement distributed tracing using Jaeger and how to visualize the traces using Jaeger UI. Jaeger is an open-source distributed tracing mechanism that helps to trace requests in distributed systems. It is based on OpenTracing specification and is a part of the Cloud Native Computing Foundation (CNCF). I have explained some key concepts of tracing in my previous article “ Distributed Tracing With Spring Cloud Sleuth.” With this, let’s look at some code. Let’s create an application from https://start.spring.io with only a single dependency of “Spring Web.” Once you generate and download the code, we will add the following Jaeger dependency to the pom file which will help to generate and propagate the traces between the services. With this, let’s add a controller with some paths. Here, we have two endpoints: /path1 and /path2. The idea here is to use two instances of the same application such that /path1 calls /path2 of another service at a fixed port 8090.

Continue reading...