diff --git a/spring-cloud-sleuth.html b/spring-cloud-sleuth.html index a0ba665cb..a5977cb86 100644 --- a/spring-cloud-sleuth.html +++ b/spring-cloud-sleuth.html @@ -1701,7 +1701,7 @@ are creating Spans each time a new task is submitted, invoked or scheduled.

CompletableFuture<Long> completableFuture = CompletableFuture.supplyAsync(() -> {
 	// perform some logic
 	return 1_000_000L;
-}, new TraceableExecutorService(Executors.newCachedThreadPool(),
+}, new TraceableExecutorService(executorService,
 		// 'calculateTax' explicitly names the span - this param is optional
 		tracer, traceKeys, spanNamer, "calculateTax"));
@@ -1727,7 +1727,7 @@ To disable Zuul support set the spring.sleuth.zuul.enabled property