Add (limited) hybrid agent proxy support#3013
Open
jasonjkeller wants to merge 4 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
sharvath-newrelic
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_portconfig to configure the OTLP exporter for OTel versions 1.59.0 via thecom.newrelic.instrumentation.opentelemetry-sdk-extension-autoconfigure-1.59.0instrumentation module.The earlier
com.newrelic.instrumentation.opentelemetry-sdk-extension-autoconfigure-1.28.0instrumentation 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.