apm-agent-nodejs icon indicating copy to clipboard operation
apm-agent-nodejs copied to clipboard

HTTP proxy support?

Open ddolcimascolo opened this issue 6 years ago • 3 comments

Hey guys,

Sorry if this was asked before, but does this client (and more generally the NodeJS APM client) support a HTTP(s) proxy? I've quickly scrolled through the docs and I couldn't find a way to configure my proxy... Is there some undocumented, automagic environment variable ?

EDIT: A bit of context: my Node apps are running behind a corporate HTTP proxy, and MUST go through it to talk to the Internet. You guessed it, the APM server will be accessed remotely, through Internet

Regards, David

ddolcimascolo avatar Oct 10 '19 07:10 ddolcimascolo

Not currently, no. It shouldn't be too hard to make it accept a custom http.Agent instance though and just swap in http-proxy-agent. 🤔

PRs are, of course, welcome. 😉

Qard avatar Oct 10 '19 23:10 Qard

Thx for the quick answer @Qard

ddolcimascolo avatar Oct 11 '19 05:10 ddolcimascolo

Happy to help. Sorry we don't support this yet. 😅

Qard avatar Oct 11 '19 17:10 Qard