Skip to content

Add (limited) hybrid agent proxy support#3013

Open
jasonjkeller wants to merge 4 commits into
mainfrom
hybrid-proxy-support
Open

Add (limited) hybrid agent proxy support#3013
jasonjkeller wants to merge 4 commits into
mainfrom
hybrid-proxy-support

Conversation

@jasonjkeller

Copy link
Copy Markdown
Contributor

Resolves #2427

The OTel Java SDK has very limited support for proxies, essentially only allowing proxy host/port through a programmatic interface, and only supporting that on later versions of OTel. The OTel SDK does not support proxy authorization.

Given these limitations, this PR adds support for using the Java agent's proxy_host/proxy_port config to configure the OTLP exporter for OTel versions 1.59.0 via the com.newrelic.instrumentation.opentelemetry-sdk-extension-autoconfigure-1.59.0 instrumentation module.

The earlier com.newrelic.instrumentation.opentelemetry-sdk-extension-autoconfigure-1.28.0 instrumentation module will not support the Java agent's proxy config.

Both modules will also support JVM-level proxy properties, though those will apply to the entire application, not just the OTel exporter.

Test coverage and documentation is also included in the PR.

@codecov-commenter

codecov-commenter commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.90%. Comparing base (5723705) to head (c800059).

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #3013       +/-   ##
=============================================
+ Coverage     37.90%   70.90%   +33.00%     
- Complexity     5477    10665     +5188     
=============================================
  Files           870      870               
  Lines         42924    42924               
  Branches       6493     6493               
=============================================
+ Hits          16270    30437    +14167     
+ Misses        24387     9547    -14840     
- Partials       2267     2940      +673     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

[Hybrid Agent] Add Proxy Support for OTel Metrics

3 participants