Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 1.34 KB

README.md

File metadata and controls

72 lines (46 loc) · 1.34 KB

Distributed Tracing Java Sample

This project demonstrates how to implement distributed tracing in java spring boot application with the help for below microservices

Tracing flow

Distributed tracing

Running the code

This application require Eureka service registry

cd discovery-server
mvn clean install -Dmaven.test.skip
docker build -t discovery-service:1.0.1 .
docker run -d --name discovery-service -p 8761:8761 discovery-service:1.0.1

Run http://localhost:8761

Eureka

Start individual microservice using below commands

  1. UserService
cd user-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh

  1. OrderService
cd order-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh

  1. PaymentService
cd payment-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh

  1. Demo UI

To capture traces from above microservice run the sample-ui application using below commands

npm install -g serve
serve -l 9090 ui

Open http://localhost:9090 and perform actions that will capture traces to signoz

DemoUI

View traces, logs and metrics: