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

macros: support setting name of spawned threads #6913

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cgzones
Copy link

@cgzones cgzones commented Oct 18, 2024

Support setting the names of spawned tokio threads.

Support setting the names of spawned tokio threads.
@Darksonn Darksonn added A-tokio-macros Area: The tokio-macros crate A-tokio Area: The main tokio crate M-runtime Module: tokio/runtime labels Oct 18, 2024
@Darksonn
Copy link
Contributor

We don't add all of the runtime options to the main macro. This option seems rather specialized. You can set it through the runtime builder if you require specialized configurations.

@cgzones
Copy link
Author

cgzones commented Oct 21, 2024

I'd like to set the name manually to avoid comm=tokio-runtime-w in audit events, which is not clear on the first sight from what application it originates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate A-tokio-macros Area: The tokio-macros crate M-runtime Module: tokio/runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants