Giter VIP home page Giter VIP logo

spring-cloud-zipkin-tracing's Introduction

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.

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 :

Zipkin OUTPUT UI

How to rebuild the project after the changes?

$ docker-compose build

spring-cloud-zipkin-tracing's People

Contributors

baratharivazhagan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.