Skip to content

SigNoz/distributed-tracing-java-sample

 
 

Repository files navigation

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:

About

Spring boot application with service discovery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 71.4%
  • JavaScript 15.2%
  • Shell 9.0%
  • HTML 3.2%
  • Dockerfile 1.2%