Add support for Jetty 12 HTTP Client #9380
Labels
contribution welcome
Request makes sense, maintainers probably won't have time, contribution would be welcome
enhancement
New feature or request
new instrumentation
Is your feature request related to a problem? Please describe.
We'd be looking for a solution similar to #2837 (Jetty 9 HTTP Client) but for Jetty 12, instead.
Unfortunately, Jetty 12 has gone through some serious API changes, and as such the previous instrumentation will definitely not work as it is.
Describe the solution you'd like
It seems the current Jetty 9.x implementation opted to instrument
org.eclipse.jetty.client.HttpRequest.send()
, which then callsorg.eclipse.jetty.client.HttpClient,send()
.HttpClient
seems public so if I'm reading the situation correctly this may mean that calls tosend()
done directly throughHttpClient
may not currently be monitored..On the other hand, in Jetty 12,
HttpClient
no longer seems to have asend()
method, so one should indeed instrumentorg.eclipse.jetty.client.transport.HttpRequest.send(Response.CompleteListener)
instead. Do note the change of package ofHttpRequest
, fromorg.eclipse.jetty.client
toorg.eclipse.jetty.client.transport
.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: