Code Monkey home page Code Monkey logo

cloudecho / dubbo-zipkin-spring-boot-starter Goto Github PK

View Code? Open in Web Editor NEW

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

0.0 0.0 0.0 398 KB

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

License: Apache License 2.0

Java 98.78% Makefile 1.22%

dubbo-zipkin-spring-boot-starter's Introduction

dubbo-zipkin-spring-boot-starter

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

spring-boot 用户如何引入使用

    <dependency>
      <groupId>com.github.cloudecho</groupId>
      <artifactId>dubbo-zipkin-spring-boot-starter</artifactId>
      <version>1.1.1</version>
    </dependency>

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

	dubbo.trace.enabled=false

运行自带的测试

1.下载zipkin数据收集服务器包

zipkin-server-2.23.16-exec.jar, 这里以本地内存服务器做演示:

java -jar ./zipkin-server-2.23.16-exec.jar

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

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

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

说明:

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

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

如图:

zipkin-demo

CHANGELOG

See CHANGELOG

Reference

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.