https://github.com/baratharivazhagan/spring-cloud-zipkin-tracing
This project contains samples demonstrating the microservices tracing using zipkin
https://github.com/baratharivazhagan/spring-cloud-zipkin-tracing
zipkin zipkin-server zipkin-sleuth
Last synced: about 1 year ago
JSON representation
This project contains samples demonstrating the microservices tracing using zipkin
- Host: GitHub
- URL: https://github.com/baratharivazhagan/spring-cloud-zipkin-tracing
- Owner: BarathArivazhagan
- Created: 2017-07-03T04:17:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T11:32:39.000Z (about 7 years ago)
- Last Synced: 2025-06-14T09:05:05.135Z (about 1 year ago)
- Topics: zipkin, zipkin-server, zipkin-sleuth
- Language: Java
- Size: 49 MB
- Stars: 1
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-cloud-zipkin-tracing
This project contains samples demonstrating the microservices tracing using zipkin.
## spring cloud sleuth
spring cloud sleuth automatically instruments common communication channels:
* Requests over messaging technologies like Apache Kafka or RabbitMQ (or any other spring cloud stream binder)
* HTTP headers received at Spring MVC controllers
* Requests that pass through a Netflix Zuul microproxy
* Requests made with the RestTemplate, etc.
### zipkin
Distributed Tracing system to trace the request across services in microservices architecture.
### zipkin ui
Navigate to http://localhost:9411 to view Zipkin UI.

Name
Port
Description
zipkin-ui-server
9411
Zipkin UI server
zipkin-client-1
8081
Client application
zipkin-client-2
8082
Client application
## How to build and run ?
- Download/Clone the repository :
```
$ git clone https://github.com/BarathArivazhagan/spring-cloud-zipkin-tracing && cd spring-cloud-zipkin-tracing
$ ./mvnw clean install
```
- To run the application :
```
$ docker-compose up
```
## How to test the application ?
Navigate to http://localhost:8081/client Client 1 --> Client 2 interaction
Navigate to http://localhost:8082/client Client 2 --> Client 1 interaction
## Zipkin Output:
#### client1 app logs
```
2017-10-29 20:26:37.497 INFO [zipkin-client-1,9866ef627387f89d,9866ef627387f89d,true] 5025 --- [nio-8081-exec-8] com.barath.app.AppController : Invoke Client 1
```
#### client2 app logs
```
2017-10-29 20:26:37.521 INFO [zipkin-client-2,9866ef627387f89d,353315ba5919a55d,true] 5029 --- [io-8082-exec-10] com.barath.app.AppController : Welcome Home from Client 2 is called
```
#### In zipkin ui :

## How to rebuild the project after the changes?
```
$ docker-compose build
```