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
Let instana/go-sensor handle default agent host #5658
Conversation
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.
as agentDefaultHost
is localhost
by default, it's a non breaking change.
https://github.com/instana/go-sensor/blob/37630c4806bc847402a7c168c159e8344ceace4b/fsm.go#L82-L92
https://github.com/instana/go-sensor/blob/56457d4adf449c1e5b723badaa0c3054c63316af/agent.go#L19
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.
LGTM
Passing an empty string as default host allows instana/go-sensor to look up INSTANA_HOST_AGENT env var. See https://github.com/instana/go-sensor/blob/master/fsm.go#L82-L92
What does this PR do?
Passing an empty string as default host allows instana/go-sensor to look up INSTANA_HOST_AGENT env var.
See https://github.com/instana/go-sensor/blob/master/fsm.go#L82-L92
Motivation
In a kubernetes env it enables the possibility to give to traefik the ip of the host which should have a local instana agent.
More
Additional Notes