# geektimes-xiaomage1-works **Repository Path**: liuyj2/geektimes-xiaomage1-works ## Basic Information - **Project Name**: geektimes-xiaomage1-works - **Description**: 极客时间小马哥训练营1期 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: week13 - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-06 - **Last Updated**: 2021-10-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 第 13 周作业 ## 目标 - 将项目的中Zipkin 客户端(ServiceClientApplication 和ServiceProviderApplication)与 Zipkin 服务端整合起来 - 可选作业: - 写出 Zipkin 客户端和服务端之间数据传输的过程以及细节 - 了解 Zipkin 如何实现分布式数据采集和存储 ## 实现 ### 添加POM依赖 ```xml org.springframework.cloud spring-cloud-starter-sleuth org.springframework.cloud spring-cloud-sleuth-zipkin ``` ### 配置消费者和提供者yml ```yaml #整合zipkin zipkin: sender: type: web base-url: http://localhost:9411/ service: name: client sleuth: sampler: probability: 1 ``` ### 启动es ### 启动zipkin server ### 测试 http://localhost:9090/ http://127.0.0.1:9411/ ![image-20210927143508115](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20210927143508115.png)