Skip to content

Conversation

@igorpeshansky
Copy link
Contributor

@igorpeshansky igorpeshansky commented Jun 9, 2021

Update tests to exercise otel on linux.
Also synchronize error behavior between otel and collectd, and some cleanup of test inputs.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@igorpeshansky
Copy link
Contributor Author

As agreed offline, I've split out the first two commits of this PR into #94, and will rebase once that one is merged.

@qingling128
Copy link
Contributor

#94 was merged. Guess we could rebase this one then. Let me know when it's ready for review.

@igorpeshansky igorpeshansky force-pushed the igorpeshansky-otel-useragent branch 2 times, most recently from 5734136 to c262a21 Compare June 11, 2021 23:16
@igorpeshansky
Copy link
Contributor Author

Rebased. Ready for review.

Copy link
Contributor

@qingling128 qingling128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

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.

@igorpeshansky igorpeshansky merged commit ab1eb82 into master Jun 13, 2021
@igorpeshansky igorpeshansky deleted the igorpeshansky-otel-useragent branch June 13, 2021 02:18
qingling128 added a commit that referenced this pull request Jun 17, 2021
…sion label. (#93)

Only cherry pick the commit ab1eb82 with the
 part that updates user agent and version label.
qingling128 added a commit that referenced this pull request Jun 18, 2021
…sion label. (#93) (#106)

Only cherry pick the commit ab1eb82 with the part that updates user agent and version label.
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

Successfully merging this pull request may close these issues.

3 participants