Use JDK http client (opentelemetry-exporter-sender-jdk) with Java agent #7164
Unanswered
marco-farinetti-evooq
asked this question in
Q&A
Replies: 1 comment 12 replies
-
I also attempted to use @open-telemetry/java-instrumentation-approvers curious what you think about this. I suspect that the |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
We're using Opentelemetry in our application with an extended java agent. The extension is built as described here build.gradle
The actual issue we're facing is with proxy authentication, the same as described here #6819. Since this is not yet supported and with Okhttp we can't just set the Proxy-Authorization header, we thought we could get around it by using the JDK http client.
We tried configuring it in the extension:
but this doesn't affect the java agent jar, which seems to include only the Okhttp sender.
As a last resort (which is really not ideal), we tried forking the instrumentation repo and added the jdk sender to the java agent tooling referring to #5703
I believe we're still missing something as when running the application it's still using the Okhttp client:
Do you have any suggestion? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions