It is not possible to qet QueueCapacity from `LazyTraceThreadPoolTaskExecutor`
See original GitHub issueDescribe the bug
It is not possible to qet QueueCapacity from LazyTraceThreadPoolTaskExecutor
Sample
The LazyTraceThreadPoolTaskExecutor
class wraps a delegate of type ThreadPoolTaskExecutor
Following is the issue,
In this piece of code we set the capacity on the delegate.
But we do not have a method to getQueueCapacity
from the delegate.
Also, there is no way to get the delegate like we do with the getThreadPoolExecutor
method.
In the end we can set queue capacity on the LazyTraceThreadPoolTaskExecutor
but not get the value from it.
I can do a PR if it helps but I think this is a miss.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
java - Spring Cloud Sleuth v2.2.3 how to propagate TraceId to ...
Use LazyTraceExecutor . This class propagates traceIds to new threads and create new spanIds in the process. For more details see.
Read more >Working With ThreadPoolTaskExecutor of Spring - Quinbay
The maxPoolSize relies on queueCapacity because ThreadPoolTaskExecutor ... you will see that the pool size increases but it will not exceed max pool...
Read more >LazyTraceThreadPoolTaskExecu...
I have a background job running on each request, which will take the thread from a LazyTraceThreadPoolTaskExecutor. But on running the trace I'm ......
Read more >LazyTraceThreadPoolTaskExecu...
Class LazyTraceThreadPoolTaskExecutor. java.lang.Object. org.springframework.util.CustomizableThreadCreator. org.springframework.scheduling.concurrent ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The latest supported Cloud version with Sleuth is 2021.0.x. In your case you need to run
2021.0.5-SNAPSHOT
Snapshots should already be available