Remember once zipkin and spring cloud bus conflict

Problem manifests
spring boot version 2.0.6
the Spring Cloud version Finchley.SR2

Use spring-cloud-starter-zipkin + zipkin be deployed independently link tracking, but if the project use rabbitmq and spring-cloud-starter-bus-amqp lead to zipkin not collect information

Causes
spring-cloud-starter-bus- amqp contains all the components of the spring-rabbit.
After the introduction of spring-cloud-starter-zipkin, the default is used to communicate with Zipkin http way.
At the same time the introduction of spring-rabbit, zipkin becomes in communication with the use rabbitmq.

Solution
configuration file to add or edit the following attributes. We can continue to use http zipkin way to communicate.

spring.zipkin.sender.type: web

Other solutions
1. Configure zipkin use rabbitmq information gathering. Not elaborate.

Reference
https://cloud.spring.io/spring-cloud-static/Finchley.SR2/single/spring-cloud.html#sleuth-adding-project
----------------
Disclaimer: this article is the original article CSDN bloggers "Zhu Ying fast", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/volcannon/article/details/83789675

Guess you like

Origin www.cnblogs.com/alittlesmile/p/11653698.html