-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Issue #3911: Expose telegraf agent version in internal module #4828
Issue #3911: Expose telegraf agent version in internal module #4828
Conversation
Instead of the "full version", I think we should set just the version. This will give us a bit more flexibility in how we display it later on. For references, here are some full versions:
Short version:
User-Agent could then be:
|
@danielnelson I made that change. There is some small duplication in determining the "short version | unknown" but I thought that preferable to rewriting |
Required for all PRs:
@danielnelson This PR exposes the agent version in the internal module per our conversation in #3911
I decided to separate this in to two PRs, one to expose the version and then one to use it, in case there is back and forth on how the version is initially exposed.