diff --git a/1.2.x/multi/multi__integrations.html b/1.2.x/multi/multi__integrations.html index 760497c27..c13ad8bb7 100644 --- a/1.2.x/multi/multi__integrations.html +++ b/1.2.x/multi/multi__integrations.html @@ -133,7 +133,9 @@ are creating Spans each time a new task is submitted, invoked or scheduled.
< return 1_000_000L; }, new TraceableExecutorService(executorService, // 'calculateTax' explicitly names the span - this param is optional - tracer, traceKeys, spanNamer, "calculateTax"));Sometimes you need to set up a custom instance of the AsyncExecutor. In the following snippet you
+ tracer, traceKeys, spanNamer, "calculateTax"));
![]() | Important |
|---|---|
Sleuth doesn’t work with |
Sometimes you need to set up a custom instance of the AsyncExecutor. In the following snippet you
can see an example of how to set up such a custom Executor.
@Configuration @EnableAutoConfiguration @EnableAsync diff --git a/1.2.x/single/spring-cloud-sleuth.html b/1.2.x/single/spring-cloud-sleuth.html index 03fb83255..d6562e838 100644 --- a/1.2.x/single/spring-cloud-sleuth.html +++ b/1.2.x/single/spring-cloud-sleuth.html @@ -827,7 +827,9 @@ are creating Spans each time a new task is submitted, invoked or scheduled.< return 1_000_000L; }, new TraceableExecutorService(executorService, // 'calculateTax' explicitly names the span - this param is optional - tracer, traceKeys, spanNamer, "calculateTax"));
Sometimes you need to set up a custom instance of the AsyncExecutor. In the following snippet you
+ tracer, traceKeys, spanNamer, "calculateTax"));
![]() | Important |
|---|---|
Sleuth doesn’t work with |
Sometimes you need to set up a custom instance of the AsyncExecutor. In the following snippet you
can see an example of how to set up such a custom Executor.
@Configuration @EnableAutoConfiguration @EnableAsync diff --git a/1.2.x/spring-cloud-sleuth.xml b/1.2.x/spring-cloud-sleuth.xml index 9b53be62d..75edd57e5 100644 --- a/1.2.x/spring-cloud-sleuth.xml +++ b/1.2.x/spring-cloud-sleuth.xml @@ -1738,6 +1738,11 @@ are creating Spans each time a new task is submitted, invoked or scheduled. ++ Sleuth doesn’t work with +parallelStream() out of the box. If you want +to have the tracing information propagated through the stream you have to use the +approach withsupplyAsync(...) as presented above.Customization of Executors Sometimes you need to set up a custom instance of the AsyncExecutor . In the following snippet you