SpringCloud整合sleuth,使用zipkin时不显示服务

刚开始以为是版本不兼容,后来发现是因为配置没对,需要加 
sender:
  type: web

yaml格式如下:

spring:
application:
name: xxx
zipkin:
base-url: http://localhost:9411/
sender:
type: web
sleuth:
sampler:
probability: 1
posted @ 2019-07-13 00:52  Dandwj  阅读(1826)  评论(0编辑  收藏  举报