-
Notifications
You must be signed in to change notification settings - Fork 77
Fix user agent strings and the otel uptime version label. #93
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
Conversation
confgenerator/confgenerator.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The getVersionLabel and getUserAgent functions are quite similar. Does it make sense to combine them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Done. As an aside, this also made me realize that getVersionLabel does not use the hostInfo parameter, so I've removed that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Linux, iis and mssql are not supported, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, but this is effectively the TODO you've previously added in confgenerator.go, except for otel. I've replicated that TODO to all of the affected locations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. This changed because we switched from collectd to otel, which has a TODO. Got it.
otel/conf.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Is this worth a separate PR though? Seems a bit unrelated to Fix user agent strings and the otel uptime version label., right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. This is part of synchronizing the error messages across collectd and otel… I'm happy to mention that in the PR description if needed.
|
As agreed offline, I've split out the first two commits of this PR into #94, and will rebase once that one is merged. |
|
#94 was merged. Guess we could rebase this one then. Let me know when it's ready for review. |
- factor out common template expansion bits - add TODOs in relevant places
5734136 to
c262a21
Compare
|
Rebased. Ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. This changed because we switched from collectd to otel, which has a TODO. Got it.
Update tests to exercise otel on linux.
Also synchronize error behavior between otel and collectd, and some cleanup of test inputs.