Skip to content
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

Set thread name prefix for default event loop thread pool #562

Open
inikolaev opened this issue Sep 7, 2023 · 0 comments
Open

Set thread name prefix for default event loop thread pool #562

inikolaev opened this issue Sep 7, 2023 · 0 comments

Comments

@inikolaev
Copy link

  • uvloop version: 0.17.0
  • Python version: 3.11
  • Platform: any
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?:
  • Does uvloop behave differently from vanilla asyncio? How?: When creating a default thread pool uvloop does not set thread name prefix

It would be great to set thread name prefix for a default thread pool used by uvloop. For example the default asyncio loop sets it to asyncio, so for uvloop it could be set to uvloop. It's useful for debugging and for example in DataDog flame graph it makes it easier to identify uvloop threads in this case. Right now it looks like this:

image

As I understand it should be pretty straightforward change and I could make a PR if there are no objections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant