Springboot整合zipkin常见报错的解决方法

  • A+
所属分类:zipkin

今天搭环境遇到几个错误,整理一下:

第一个:

Prometheus requires that all meters with the same name have the same set of tag keys. There is already an existing meter containing tag keys [method, status, uri]. The meter you are attempting to register has keys [exception, method, status, uri]

解决方法:

在application.properties中添加配置:

#zipkin启动报错无法访问的解决方法
management.metrics.web.server.auto-time-requests=false

第二个:

设置spring.sleuth.sampler.percentage=1无效。

解决方法:由于springcloud的版本太新,用spring.sleuth.sampler.probability=1即可。

ZPY

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: