Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 785 Bytes

README.MD

File metadata and controls

26 lines (20 loc) · 785 Bytes

使用步骤:

maven添加该项目jar包(自己打包安装到本地仓库)

        <dependency>
            <groupId>io.zipkin.brave</groupId>
            <artifactId>brave-dubbo</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>

spring中配置

  • 打印日志方式
        <bean id="brave" class="com.github.kristofa.brave.dubbo.BraveFactoryBean" p:serviceName="serviceName" p:zipkinHost="" p:rate="1.0" />
  • http方式
        <bean id="brave" class="com.github.kristofa.brave.dubbo.BraveFactoryBean" p:serviceName="serviceName" p:zipkinHost="http://10.168.16.111:9411/" p:rate="1.0" />

参考文档:

http://www.tuicool.com/articles/f2qAZnZ