disruption: use proxy from environment when measuring disruption
In CI, metal clusters are accessed using a proxy, so the new sampler doesn't
work on metal.
@@ -260,6 +260,7 @@ func (b *BackendSampler) GetHTTPClient() (*http.Client, error) {
IdleConnTimeout: timeoutForPartOfRequest,
ResponseHeaderTimeout: timeoutForPartOfRequest,
ExpectContinueTimeout: timeoutForPartOfRequest,
+ Proxy: http.ProxyFromEnvironment,
}
case ReusedConnectionType:
@@ -272,6 +273,7 @@ func (b *BackendSampler) GetHTTPClient() (*http.Client, error) {
IdleConnTimeout: timeoutForPartOfRequest,
ResponseHeaderTimeout: timeoutForPartOfRequest,
ExpectContinueTimeout: timeoutForPartOfRequest,
+ Proxy: http.ProxyFromEnvironment,
}
default:
