-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Thread name prefix is not always set when using virtual threads #39748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We set the names for Redis, Kafka and Undertow. We don't set them for Rabbit and for Pulsar. We should make that consistent. IMHO we should name threads in all cases. |
Can I help out with this @mhalbritter ? |
Sure. I'll assign the issue to you. This is targeted for the 3.2.x branch, so please create your PR based on that. If you need help, please chime back in. |
@mhalbritter . When is the 3.2.x going to be released. I will do this outside of my working time. |
Don't worry about timelines. We release 3.2.x every month (see https://calendar.spring.io/). Please take your time, it's done when it's done :) |
Thanks. :) |
Hello, is this open to work on? |
Sorry, can anyone reassign me back. Accidentally click unassign. Sorry again @mhalbritter . |
Superseded by #39958. |
We noticed that the thread name was missing as a field in our logs logged by the rabbit listener after activating
VirtualThreads
.We use Loki in Grafana where we have multiple fields, where the thread name is one of them. To be able to see which thread logs what is useful to identify issues.
We noticed that in the class
org.springframework.boot.autoconfigure.amqp.RabbitAnnotationDrivenConfiguration
, Spring Boot does not set a thread prefix to theVirtualThreadTaskExecutor
class whenVirtualThreads
is configured. In fact, when not set, it defaults tonull
. Perhaps that is by design, but It seems Spring Boot sets a thread name prefix in some AutoConfigurations and some not.May I suggest names something like:
Thank you
The text was updated successfully, but these errors were encountered: