-
Notifications
You must be signed in to change notification settings - Fork 723
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
tracing-appender: make worker thread name configurable #2364
Comments
For what it's worth, the v0.1.x branch also has the thread named |
One may have more that one non blocking appender in an app and the easiest way to distinguish them would be to allow it to be configured by the user. I have a change ready on master but I was a bit confused regarding the branch situation. What are the stable and dev branches? Where should such a change go, provided it is not breaking? |
Adding a configuration option via a setter isn't a breaking change, so I wouldn't worry about that. Opening the PR against is preferred—we handle backports. |
The worker thread name in non blocking mode is always "tracing-appender". It can be convenient to quickly identify the appender threads for audit reasons or affinity pinning. This patch adds a new setter to the builder and propagates the info to the thread initialization.
To make sure I understand properly, the PR should be done on the master branch and you will backport it to the stable branch?
Is there an upgrade/migration documentation? |
The worker thread name in non blocking mode is always "tracing-appender". It can be convenient to quickly identify the appender threads for audit reasons or affinity pinning. This patch adds a new setter to the builder and propagates the info to the thread initialization.
Thank you @hawkw! Is it reasonable to expect this patch to be released under tracing-appender 0.2.x? |
Yup, we'll take care of backporting this and publishing a release at some point in the near future! Thanks for the contribution! |
## Motivation The worker thread name in non blocking mode is always "tracing-appender". It can be convenient to quickly identify the appender threads for audit reasons or affinity pinning. ## Solution This patch adds a new setter to the builder and propagates the info to the thread initialization. Closes #2364
## Motivation The worker thread name in non blocking mode is always "tracing-appender". It can be convenient to quickly identify the appender threads for audit reasons or affinity pinning. ## Solution This patch adds a new setter to the builder and propagates the info to the thread initialization. Closes #2364
Configure worker thread name in tracing-appender
Crates
tracing-appender
Motivation
In v0.3.16, the worker thread does not have a proper name, so it takes the application's name. In master, it seems it uses "tracing-appender". It is useful to quickly identify threads for auditing or affinity pinning.
Proposal
Add a field to NonBlockingBuilder with a setter. Pass this name during worker init.
The text was updated successfully, but these errors were encountered: