Spring Cloud Zipkin with RabbitMQ 未在 MYSQL 中持久化
Spring Cloud Zipkin with RabbitMQ not persisting in MYSQL
我已经完成了所有可能的匹配和依赖关系的混合,但仍然无法在 zipkin 中记录痕迹并使用 RabbitMQ 将其存储在 MYSQL 中。
我仍然可以在控制台中看到跟踪和跨度 ID,除此之外什么都没有。
有人请从下面的位置查看 github 中的代码。
您几乎混合了所有可以混合的东西。在应用端,您同时使用了已弃用的 zipkin 服务器和已弃用的客户端。在服务器端,您使用的是已弃用的 zipkin 服务器。
我的建议是您阅读文档 https://cloud.spring.io/spring-cloud-static/Edgware.SR3/single/spring-cloud.html#_spring_cloud_sleuth and read that the stream servers
are deprecated and you should use the openzipkin zipkin server with rabbitmq support (https://github.com/openzipkin/zipkin/tree/master/zipkin-collector/rabbitmq)。
在消费者端使用 https://cloud.spring.io/spring-cloud-static/Edgware.SR3/single/spring-cloud.html#_sleuth_with_zipkin_via_rabbitmq_or_kafka 。它真的是那么简单。另外不要忘记将采样百分比设置为 1.0
我已经完成了所有可能的匹配和依赖关系的混合,但仍然无法在 zipkin 中记录痕迹并使用 RabbitMQ 将其存储在 MYSQL 中。
我仍然可以在控制台中看到跟踪和跨度 ID,除此之外什么都没有。
有人请从下面的位置查看 github 中的代码。
您几乎混合了所有可以混合的东西。在应用端,您同时使用了已弃用的 zipkin 服务器和已弃用的客户端。在服务器端,您使用的是已弃用的 zipkin 服务器。
我的建议是您阅读文档 https://cloud.spring.io/spring-cloud-static/Edgware.SR3/single/spring-cloud.html#_spring_cloud_sleuth and read that the stream servers
are deprecated and you should use the openzipkin zipkin server with rabbitmq support (https://github.com/openzipkin/zipkin/tree/master/zipkin-collector/rabbitmq)。
在消费者端使用 https://cloud.spring.io/spring-cloud-static/Edgware.SR3/single/spring-cloud.html#_sleuth_with_zipkin_via_rabbitmq_or_kafka 。它真的是那么简单。另外不要忘记将采样百分比设置为 1.0