You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, as ForkJoinPool.commonPool() spends a long time on heavy tasks including I/O processing such as HTTP connections, there is a demand for using ThreadPoolExecutor which is shared in a single task queue.
For now, this problem might be resolved by using the setTraceEntity()` as below.
final Entity entity = AWSXRay.getTraceEntity();
CompletableFuture<?> completableFuture = CompletableFuture.supplyAsync(
() -> {
AWSXRay.setTraceEntity(entity);
// do something ...
}, customedThreadPool);
However, as setTraceEntity() is deprecated, this way is not good for the future. Hence, if there's a way to resolve this problem, I'd like to know that.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hello,
Currently,
SegmentContextExecutors.newSegmentContextExecutor
provides an Executor which usesForkJoinPool.commonPool()
.However, as
ForkJoinPool.commonPool()
spends a long time on heavy tasks including I/O processing such as HTTP connections, there is a demand for usingThreadPoolExecutor
which is shared in a single task queue.For now, this problem might be resolved by using the setTraceEntity()` as below.
However, as
setTraceEntity()
is deprecated, this way is not good for the future. Hence, if there's a way to resolve this problem, I'd like to know that.Thanks in advance.
The text was updated successfully, but these errors were encountered: