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

Proxy configuration #403

Open
keshav-c opened this issue Aug 10, 2023 · 0 comments
Open

Proxy configuration #403

keshav-c opened this issue Aug 10, 2023 · 0 comments

Comments

@keshav-c
Copy link

keshav-c commented Aug 10, 2023

Is your feature request related to a problem? Please describe.
How can I configure this agent to use a proxy when connecting to the internet.

I tried to configure :httpc with proxy settings in my app like so:

config/releases.exs

:httpc.set_options(proxy: {{'http://www.myproxy.com`, 3138}, []})

But I get the error in my logs

{
	"application":"my-app","env":"prod","level":"ERROR",
	"message":"new_relic_agent - preconnect: (failed_request) {:failed_connect, [{:to_address, {'collector.newrelic.com', 443}}, {:inet, [:inet], :timeout}]}",
	"mfa":"{NewRelic.Logger, :handle_cast, 2}",
	"service":"pixel","timestamp":"2023-08-11T07:53:55.013Z"
}

Describe the solution you'd like
The node.js agent has an environment variable that can be configured for this purpose. NEW_RELIC_PROXY_URL

Describe alternatives you've considered
Should this agent be patched so the proxy settings are read in the lib/new_relic/init.ex file ?

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

No branches or pull requests

1 participant