Added clarification for Reactive Suppliers

you must fallback to Spring Integration instrumentation for reactive suppliers.

related commit a32d239c1f
This commit is contained in:
Marcin Grzejszczak
2023-09-29 15:47:03 +02:00
parent cee440bacf
commit 4446b76e41

View File

@@ -459,6 +459,8 @@ For a reactive `Consumer<Flux<Message<?>>>` remember to manually close the span
}
----
For Sleuth to work with a reactive `Supplier` (e.g. `Supplier<Flux<Message<String>>>`) you must fall back to Spring Integration based instrumentation by setting `spring.sleuth.integration.enabled` to `true`.
You can disable Spring Cloud Stream integration by setting the value of `spring.sleuth.function.enabled` to `false`.
If you want to fully control the life cycle of spans within the reactive messaging context of Spring Cloud Stream