From 2765d4d2335a64ef11fdba85f865b8a21695c97d Mon Sep 17 00:00:00 2001
From: buildmaster
ribbon:
ListOfServers: host1,host2If you have web, rabbit, or kafka together on the classpath, you might need to pick the means by which you would like to send spans to zipkin.
To do so, set web, rabbit, or kafka to the spring.zipkin.sender.type property.
-The following example shows setting the sender type for web:
spring.zipkin.sender.type: web![]() | Important |
|---|---|
If you have Kafka on the classpath, you need to set
- |
To customize the RestTemplate that sends spans to Zipkin via HTTP, you can register
+The following example shows setting the sender type for web:
spring.zipkin.sender.type: webTo customize the RestTemplate that sends spans to Zipkin via HTTP, you can register
the ZipkinRestTemplateCustomizer bean.
@Configuration class MyConfig { @Bean ZipkinRestTemplateCustomizer myCustomizer() { diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html index 05489272c..50ea53105 100644 --- a/single/spring-cloud-sleuth.html +++ b/single/spring-cloud-sleuth.html @@ -671,8 +671,7 @@ that you can set up the load balancing configuration e.g. via Ribbon.ribbon: ListOfServers: host1,host2If you have web, rabbit, or kafka together on the classpath, you might need to pick the means by which you would like to send spans to zipkin. To do so, set
web,rabbit, orkafkato thespring.zipkin.sender.typeproperty. -The following example shows setting the sender type forweb:spring.zipkin.sender.type: web
Important If you have Kafka on the classpath, you need to set -
spring.zipkin.kafka.enabledtotrueapart from setting the sender type.To customize the
RestTemplatethat sends spans to Zipkin via HTTP, you can register +The following example shows setting the sender type forweb:spring.zipkin.sender.type: webTo customize the
RestTemplatethat sends spans to Zipkin via HTTP, you can register theZipkinRestTemplateCustomizerbean.@Configuration class MyConfig { @Bean ZipkinRestTemplateCustomizer myCustomizer() { diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml index ecb98ad24..2197742ba 100644 --- a/spring-cloud-sleuth.xml +++ b/spring-cloud-sleuth.xml @@ -1503,10 +1503,6 @@ that you can set up the load balancing configuration e.g. via Ribbon. To do so, setweb ,rabbit , orkafka to thespring.zipkin.sender.type property. The following example shows setting the sender type forweb :spring.zipkin.sender.type: web -- If you have Kafka on the classpath, you need to set - -spring.zipkin.kafka.enabled totrue apart from setting the sender type.To customize the RestTemplate that sends spans to Zipkin via HTTP, you can register theZipkinRestTemplateCustomizer bean.@Configuration