jaeger安装
如果需要测试 or 生产部署jaeger,可以直接度娘搜索jaeger安装, 这里只提供本地all in one安装包 下载地址:https://share.weiyun.com/5Jm3Iwc 安装后查看地址:http://127.0.0.1:16686
opentracing:
jaeger:
udp-sender:
host: localhost
port: 6831
remote-reporter:
flush-interval: 1000
max-queue-size: 5000 //队列长度
log-spans: true
probabilistic-sampler:
sampling-rate: 1 //采样频率,1表示100%
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-spring-web-starter</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-spring-jaeger-starter</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-spring-cloud-feign-starter</artifactId>
<version>0.3.0</version>
</dependency>
<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-spring-cloud-zuul-starter</artifactId>
<version>0.3.0</version>
</dependency>