This is the equivalent behavior of the previous agent configuration. If a proxy URL is provided in libhoney config, a single ProxyAgent will be created with that proxy URL set for all connections. No nuanced lookup of proxy config from the environment based on target URL protocol.
proxy-agent is a hefty import, but we were importing an early edition of it (v5.0.0) already via superagent-proxy. Update: whew, bundlephobia really doesn't handle direct links well.
Which problem is this PR solving?
Short description of the changes
This is the equivalent behavior of the previous agent configuration. If a proxy URL is provided in libhoney config, a single ProxyAgent will be created with that proxy URL set for all connections. No nuanced lookup of proxy config from the environment based on target URL protocol.
proxy-agent is a hefty import, but we were importing an early edition of it (v5.0.0) already via superagent-proxy. Update: whew, bundlephobia really doesn't handle direct links well.
TODO?