opentelemetry-java-contrib
opentelemetry-java-contrib copied to clipboard
[aws-xray] Remove OkHttp dependency from aws-xray
Is your feature request related to a problem? Please describe.
aws-xray has a dependency on OkHttp because of the XraySamplerClient. This causes transitive dependency issues with other projects. As an example, Quarkus for example only supports OkHttp 3.x and including this lib, even if the sampler is not used, will cause native builds to fail.
Describe the solution you'd like
Use another Http Client, probably the JDK http client available since java 11.
linking related: https://github.com/open-telemetry/opentelemetry-java/issues/5351