I am using Sleuth with CompletableFuture.handle
. Example:
log.info("first");
apnsClient.sendNotification(...).handle((response, cause) -> {
log.info("second");
});
I want the second
log to have the same trace id as the first
log. However, it does not. Thus I wonder what to do? Thanks!
P.S. I cannot control how apnsClient.sendNotification
manage threads (since that is from Pushy), so there is no way to use things like LazyTraceExecutor.