Java 具有完全未来的OpenTracing
如何将CompletableFuture与其父跟踪跨度关联Java 具有完全未来的OpenTracing,java,spring,completable-future,opentracing,Java,Spring,Completable Future,Opentracing,如何将CompletableFuture与其父跟踪跨度关联 @Scheduled(fixedRate = 100) fun myJob() { val taskOne = CompletableFuture.runAsync { runTaskOne() } val taskTwo = CompletableFuture.runAsync { runTaskTwo() } CompletableFuture.allOf(runTaskOne, runTaskTwo).join()
@Scheduled(fixedRate = 100)
fun myJob() {
val taskOne = CompletableFuture.runAsync { runTaskOne() }
val taskTwo = CompletableFuture.runAsync { runTaskTwo() }
CompletableFuture.allOf(runTaskOne, runTaskTwo).join()
}
我得到了总计划方面的跨度。我需要在室内或周围做什么
fun runTaskOne()
为了让它工作 我在这里寻找同样的问题,因为没有现成的工具来完成未来的工作