Skip to content

ihaolin/dubbo-trace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于dubbo的分布式系统调用跟踪demo

Quick Start:

  • 确保zipkin server已经正常启动;

  • 确保zookeeper已经正常启动:

  • 分别运行以下命令:

    • 克隆项目:

       git clone [email protected]:ihaolin/dubbo-trace.git
    • 编辑trace-demo各项目对应配置:

      • app.properties:

         # dubbo注册中心
         dubbo.registry=zookeeper://localhost:2181
        
      • trace.yml:

         # ...
        
         # zipkin-server http地址
         server: 'localhost:9411'
        
         # ...
        
    • 安装项目:

       mvn clean install -DskipTests
    • 运行user服务:

       ./run_user.sh
    • 运行order服务:

       ./run_order.sh
    • 运行web服务:

       ./run_web.sh
    • 在浏览器请求:

       http://localhost:10000/api/orders/create
      
    • 即可zipkin-server中查看跟踪记录。

  • 具体细节可参见这篇文章

About

基于Dubbo的分布式系统调用跟踪Demo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published