openzipkin / brave

Java distributed tracing implementation compatible with Zipkin backend services.
Apache License 2.0
2.36k stars 714 forks source link

[Feature Request] Instrumentation for Java 11 HttpClient #1110

Open bgong-mdsol opened 4 years ago

bgong-mdsol commented 4 years ago

My application is using Java 11 HttpClient (java.net.http.HttpClient). I could see the instrumentations for OkHttp 3.x and Apache HttpClient in https://github.com/openzipkin/brave/tree/master/instrumentation, Is there any tracing decorators for Java 11 HttpClient? If yes, can you please point me to any examples. I couldn't find anything on the internet. If not, does zipkin/brave have any plan to support Java 11 HttpClient?

codefromthecrypt commented 4 years ago

Thanks for asking. Our change culture is intentionally reactive, to ensure that features have transparent demand, and are worth maintaining. We don't write instrumentation until someone asks for it, in other words.

https://github.com/openzipkin/brave/blob/master/HACKING.md

The other part is a lot of our instrumentation is contributed by end users, ex mongodb. Are you up to trying to implement this?