Replace usage of http.DefaultClient and http.DefaultTransport (#104135)
Remove usage of http.DefaultClient and http.DefaultTransport Part of grafana/data-sources#484
This commit is contained in:
@@ -82,7 +82,7 @@ func New(cfg *setting.Cfg, validator validations.DataSourceRequestURLValidator,
|
||||
})
|
||||
}
|
||||
|
||||
// newConntrackRoundTripper takes a http.DefaultTransport and adds the Conntrack Dialer
|
||||
// newConntrackRoundTripper takes a http.Transport and adds the Conntrack Dialer
|
||||
// so we can instrument outbound connections
|
||||
func newConntrackRoundTripper(name string, transport *http.Transport) *http.Transport {
|
||||
transport.DialContext = conntrack.NewDialContextFunc(
|
||||
|
||||
Reference in New Issue
Block a user