open-telemetry / open-telemetry/opentelemetry-java
ProxyAuthenticator Support for OtlpHttp{Signal}Exporters
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 58
Description
Is your feature request related to a problem? Please describe.
OtlpHttp{Signal}Exporters do support Proxy configuration. Thanks to this issue https://github.com/open-telemetry/opentelemetry-java/issues/6204. However, we don't expose the ProxyAuthenticator that OkHttp requires if want to use an authenticated proxy. See https://github.com/square/okhttp/issues/3607 for more details on why we can't just set the Proxy-Authorization header.
Describe the solution you'd like
Enhance ProxyOptions class to support providing ProxyAuthenticator in addition to ProxySelector.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ProxyOptions class and the OtlpHttp{Signal}Exporters that consume it, then review how ProxySelector is currently exposed. The change is complete when callers can provide an OkHttp ProxyAuthenticator for authenticated proxy use without relying on a Proxy-Authorization header.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100