Added spring-kafka support; fixes gh-896

This commit is contained in:
Marcin Grzejszczak
2018-03-09 10:16:26 +01:00
parent 0474478f59
commit 73f9ec61f6
4 changed files with 115 additions and 1 deletions

View File

@@ -1125,6 +1125,8 @@ include::../../../../spring-cloud-sleuth-core/src/test/java/org/springframework/
=== Messaging
==== Spring Integration and Spring Cloud Stream
Spring Cloud Sleuth integrates with http://projects.spring.io/spring-integration/[Spring Integration].
It creates spans for publish and subscribe events.
To disable Spring Integration instrumentation, set `spring.sleuth.integration.enabled` to `false`.
@@ -1137,11 +1139,19 @@ Decorating the Spring Integration Executor Channel with `TraceableExecutorServic
==== Spring RabbitMq
We instrument the `RabbiTemplate` so that tracing headers get injected
We instrument the `RabbitTemplate` so that tracing headers get injected
into the message.
To block this feature, set `spring.sleuth.messaging.enabled` to `false`.
==== Spring Kafka
We instrument the Spring Kafka's `ProducerFactory` and `ConsumerFactory`
so that tracing headers get injected into the created Spring Kafka's
`Producer` and `Consumer`.
To block this feature, set `spring.sleuth.messaging.enabled` to `false`.
=== Zuul
We instrument the Zuul Ribbon integration by enriching the Ribbon requests with tracing information.