-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix: remove the check for the Server header of the Instana agent. #427
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.
Looks good. We should double check the timeout change, see inline comment.
e0ec53c
to
17d576d
Compare
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 work so far. We are getting there.
The coverage report shows that the failed attempt is nicely covered with the test case,
while the successful attempt is not yet covered.
Although the production code around the succesful attempt is minuscule.
I still think covering the succesful attempt would be valuable, not just because we can't have a functioning system without a successful connection attempts,
but also because this change is about enabling successful connections in a broader situation.
so any other change is secondary priority here.
17d576d
to
f9a8988
Compare
The check for the Server header of the Instana agent can break the announce procedure in service meshes when there is a proxy between the tracer and the Instana agent. This happens because some proxies do not forward the original Server header. So instead, the collector checks whether the HTTP status code is in the 2xx range. Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
f9a8988
to
4211415
Compare
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.
Approved
The check for the Server header of the Instana agent can break the announce procedure in service meshes when there is a proxy between the tracer and the Instana agent. This happens because some proxies do not forward the original Server header. So instead, the collector checks whether the HTTP status code is in the 2xx range.