new TraceableExecutorService(beanFactory, executorService,
// 'calculateTax' explicitly names the span - this param is optional
"calculateTax"));![[Important]](images/important.png)
Important Sleuth does not 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 with supplyAsync(...), as shown earlier.
Sometimes, you need to set up a custom instance of the AsyncExecutor.
+If you want to have the tracing information propagated through the stream, you have to use the approach with supplyAsync(...), as shown earlier.
If there are beans that implement the Executor interface that you would like
+to exclude from span creation, you can use the spring.sleuth.async.ignored-beans
+property where you can provide a list of bean names.
Sometimes, you need to set up a custom instance of the AsyncExecutor.
The following example shows how to set up such a custom Executor:
@Configuration
@EnableAutoConfiguration
@EnableAsync
diff --git a/multi/multi_pr01.html b/multi/multi_pr01.html
index 9d68e972d..e151ea40e 100644
--- a/multi/multi_pr01.html
+++ b/multi/multi_pr01.html
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+