Clarifies that Kafka span transport also requires a property to be set. (#1013)

This commit is contained in:
Adrian Cole
2018-06-19 14:31:10 +08:00
committed by Marcin Grzejszczak
parent 9e43c3588b
commit da1df97327
2 changed files with 9 additions and 2 deletions

View File

@@ -43,8 +43,8 @@ Consequently, if you set a baggage element on a Span, it is sent downstream to
* If `spring-cloud-sleuth-zipkin` is on the classpath, the app generates and collects Zipkin-compatible traces.
By default, it sends them over HTTP to a Zipkin server on localhost (port 9411).
You can configure the location of the service by setting `spring.zipkin.baseUrl`.
** If you depend on `spring-rabbit` or `spring-kafka`, your app sends traces to a broker instead of HTTP.
**
** If you depend on `spring-rabbit`, your app sends traces to a RabbitMQ broker instead of HTTP.
** If you depend on `spring-kafka`, and set `spring.zipkin.sender.type: kafka`, your app sends traces to a Kafka broker instead of HTTP.
CAUTION: `spring-cloud-sleuth-stream` is deprecated and should no longer be used.

View File

@@ -358,6 +358,13 @@ dependencies { <2>
If you want to use RabbitMQ or Kafka instead of HTTP, add the `spring-rabbit` or `spring-kafka` dependency.
The default destination name is `zipkin`.
If using Kafka, you must set the property `spring.zipkin.sender.type` property accordingly:
[source,yaml]
----
spring.zipkin.sender.type: kafka
----
CAUTION: `spring-cloud-sleuth-stream` is deprecated and incompatible with these destinations.
If you want Sleuth over RabbitMQ, add the `spring-cloud-starter-zipkin` and `spring-rabbit`