-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
jetty-httpclient-12: send method must pass along implemented response listeners #12326
jetty-httpclient-12: send method must pass along implemented response listeners #12326
Conversation
f796e4c
to
657d6e4
Compare
...rc/main/java/io/opentelemetry/instrumentation/jetty/httpclient/v12_0/TracingHttpRequest.java
Outdated
Show resolved
Hide resolved
84c0a4f
to
24bb28e
Compare
@stevenschlansker give it a |
af5b622
to
e8901ca
Compare
could you also add a test |
I did look into this, but the current testing structure is quite rigid with stacked superclasses and I am not sure exactly how to extend it since the tests are expected to apply to many different libraries. I'll give it a go... |
… listeners The super HttpRequest.send call says: > The listener passed to this method may implement not only Response.CompleteListener > but also other response listener interfaces, and all the events implemented will be notified. The current implementation passes through a lambda that implements CompleteListener only, and does not delegate-in-scope to any other callback methods you might provide
e8901ca
to
d8a201a
Compare
Ok, I tried to add a new test case that checks that listeners are run. |
@stevenschlansker I slightly modified the test to also verify that context is propagated to the listener |
The super HttpRequest.send call says:
The current implementation passes through a lambda that implements CompleteListener only, and does not delegate-in-scope to any other callback methods you might provide