question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It is not possible to qet QueueCapacity from `LazyTraceThreadPoolTaskExecutor`

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
marcingrzejszczakcommented, Sep 12, 2022

The latest supported Cloud version with Sleuth is 2021.0.x. In your case you need to run 2021.0.5-SNAPSHOT

1reaction
marcingrzejszczakcommented, Sep 12, 2022

Snapshots should already be available

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found