Skip to content
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

Concurrent http client tests with connection reuse #2550

Merged
merged 2 commits into from
Mar 16, 2021

Conversation

iNikem
Copy link
Contributor

@iNikem iNikem commented Mar 10, 2021

First of all, this PR introduces a new kind of test in HttpClientTest. It is very similar to the already existing high concurrency test, but all requests use the same single connection.

Second, I implement this test for Vert.x, which requires some additional instrumentations. The main one is that we now actually starting http client span on Vert.x API boundary, not on the underlying Netty. See #2496 for my rant about this.

Third, I had to disable a couple of tests in Reactive Vert.x. They started to fail because Netty does not produce spans anymore (see point 2 above) and thus does not scope response processing. I think the correct way to fix this is to use RxJava integration that we have. It's strange that vertx-rxjava integration does not use rxjava integration 🤔

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

that was not so bad, sorry for being scared and delaying review 👍

@iNikem iNikem merged commit 81f350f into open-telemetry:main Mar 16, 2021
@iNikem iNikem deleted the single-connection-vertx branch March 16, 2021 14:27
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.

4 participants