GithubHelp home page GithubHelp logo

davidmr001 / dubbo-zipkin-spring-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rucky2013/dubbo-zipkin-spring-starter

0.0 1.0 0.0 259 KB

Zipkin是一款开源的分布式实时数据追踪系统,dubbo-zipkin-spring-starter是为服务治理框架dubbo 编写的instrument library,支持dubbo全链路实时调用数据统计。使用者可以直接引入此boot starter,扩展默认自动激活(AutoConfiguration)。

Shell 27.49% Batchfile 19.50% Java 53.01%

dubbo-zipkin-spring-starter's Introduction

dubbo-zipkin-spring-starter

Zipkin是一款开源的分布式实时数据追踪系统,dubbo-zipkin-spring-starter是为服务治理框架dubbo 编写的instrument library,支持dubbo全链路实时调用数据统计。使用者可以直接引入此boot starter,扩展默认自动激活(AutoConfiguration)。

##springboot用户如何引入使用

        <dependency>
            <groupId>com.github.jessyZu</groupId>
   			 <artifactId>dubbo-zipkin-spring-starter</artifactId>
   			  <version>1.0.2</version>
        </dependency>

默认会自动配置zikpin功能,也可以这样关闭:

	dubbo.trace.enabled=false

##运行自带的测试 ###1.下载zipkin数据收集服务器包 zipkin-service-0.0.1-SNAPSHOT.jar,这里以本地内存服务器做演示:

java -jar ./zipkin-service-0.0.1-SNAPSHOT.jar

打开 http://localhost:9411/ 页面

zipkin服务器源码来自springcloud团队 https://github.com/joshlong/cloud-native-workshop/tree/master/code/zipkin-service

###2.按顺序分别运行Dubbo的服务调用与提供者

  • 运行TestService2Provider.test()
  • 运行TestService1Provider.test()
  • 运行TestService1Consumer.test()

###说明:

  • 调用关系为TestService1Consumer->TestService1Provider->TestService2Provider;
  • 一次调用会产生4个span,用来记录全链路的调用数据

###3.调用成功后,打开 http://localhost:9411/ 页面,查询调用数据,如图:

img1

img2

img3

dubbo-zipkin-spring-starter's People

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.