Open JasonYeMSFT opened 3 years ago
This package supports proxy with http proxy url, your ingestionEndpoint normally will be https endpoint, and it uses "HTTP tunneling without using CONNECT" method, please refer https://en.wikipedia.org/wiki/HTTP_tunnel for detail. Yes, I also agree this proxy method is NOT a good method, it's not safe enough. below are squid log sample:
If the proxy implementation method is "HTTP CONNECT method", you will see "TCP_TUNNEL" in the log.
For implementation detail, please refer https://github.com/microsoft/ApplicationInsights-node.js/blob/develop/Library/Util.ts makeRequest https://github.com/microsoft/ApplicationInsights-node.js/blob/master/Library/Config.ts
@JasonYeMSFT We've recently upgraded to using OpenTelemetry under the hood of this SDK. Could you test this issue out again, as it should be resolved. Thank you.
Two things I noticed with proxy: