You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Boot 3+Micrometer+Zipkin链路追踪异常问题咨询

微服务链路追踪(Micrometer + Zipkin)配置异常问题

我需要追踪系统内的所有请求,参考相关视频完成Micrometer与Zipkin的链路追踪配置,但访问http://localhost:9411/zipkin/查看仪表盘时遇到了以下问题:

  • 未手动发起任何请求,Zipkin仪表盘上却出现大量请求记录
  • 用Postman发起3个请求(1个指向order-service,2个指向product-service),但仪表盘仅显示order-service的请求记录
  • 所有请求都需要经过api-gateway service,但Zipkin仪表盘上的spans始终为1,和视频中展示的多span链路情况不符

配置详情

每个服务的application.properties中已添加:

management.tracing.sampling.probability=1.0

每个服务的pom.xml都引入了以下依赖:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-actuator</artifactId>
</dependency>
<dependency>
    <groupId>io.micrometer</groupId>
    <artifactId>micrometer-observation</artifactId>
</dependency>
<dependency>
    <groupId>io.micrometer</groupId>
    <artifactId>micrometer-tracing-bridge-brave</artifactId>
</dependency>
<dependency>
    <groupId>io.zipkin.reporter2</groupId>
    <artifactId>zipkin-reporter-brave</artifactId>
</dependency>

系统架构

系统架构图

内容的提问来源于stack exchange,提问作者summerisbetterthanwinter

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 11:02:25