Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProxyOptions exposes ProxySelector, remove proxy settings from OtlpGr… #1

Closed
wants to merge 1 commit into from

Conversation

jack-berg
Copy link

@jack-berg jack-berg commented Feb 28, 2024

  • ProxyOptions exposes ProxySelector
  • Remove proxy settings from OtlpGrpc{Signal}ExporterBuilder
  • Remove proxy autoconfigure settings
  • Add proxy e2e test with mock server

Per my proposal here.

Notably, I removed the env var options for otel.exporter.otlp.*.proxy.host.*. The env variables we support are bounded by the spec (the relevant file for these options is here), so we'd need to get the spec updated before including these.

…pc{Signal}ExporterBuilder, remove proxy autoconfigure settings, add proxy e2e test with mock server
@@ -120,8 +118,7 @@ private static HttpClient configureClient(
builder.sslContext(sslContext);
}
if (proxyOptions != null) {
builder.proxy(
ProxySelector.of(new InetSocketAddress(proxyOptions.getHost(), proxyOptions.getPort())));
builder.proxy(proxyOptions.getProxySelector());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's nice to see how we can just pass the ProxySelector down, helps confirm this approach 👍

@jack-berg jack-berg closed this Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants