Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ganny26/distributed-tracing-java-sample
Spring boot application with OpenTelemetry Integration
https://github.com/ganny26/distributed-tracing-java-sample
java microservices opentelemetry
Last synced: 2 months ago
JSON representation
Spring boot application with OpenTelemetry Integration
- Host: GitHub
- URL: https://github.com/ganny26/distributed-tracing-java-sample
- Owner: ganny26
- Created: 2022-02-24T12:33:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-14T19:23:45.000Z (over 2 years ago)
- Last Synced: 2023-03-06T00:54:36.465Z (almost 2 years ago)
- Topics: java, microservices, opentelemetry
- Language: Java
- Homepage:
- Size: 10.9 MB
- Stars: 1
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Distributed Tracing Java Sample
This project demonstrates how to implement distributed tracing in java spring boot application with the help for below microservices
- [order-service](order-service)
- [payment-service](payment-service)
- [user-service](user-service)### Tracing flow
![Distributed tracing](applicationflow.png)
### 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](eureka.png)
Start individual microservice using below commands
1. UserService
```
cd user-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh```
2. OrderService
```
cd order-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh```
3. PaymentService
```
cd payment-service
mvn clean install -Dmaven.test.skip
sh ./script/start.sh```
4. Demo UI
To capture traces from above microservice run the [sample-ui](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](demo-ui.png)
View traces, logs and metrics:
- View the metrics in signoz, go to http://localhost:3301/application