(req *http.Request)
| 317 | } |
| 318 | |
| 319 | func (t telemetryDisablerTransport) RoundTrip(req *http.Request) (*http.Response, error) { |
| 320 | // If the request is aimed at an enterprise host, disable telemetry. |
| 321 | // Currently, requests that are sent to configured api_hosts will be treated as enterprise hosts, |
| 322 | // even though they may be GHEC with Data Residency. |
| 323 | if ghauth.IsEnterprise(getHostname(req)) { |
| 324 | t.telemetryDisabler.Disable() |
| 325 | } |
| 326 | return t.wrappedTransport.RoundTrip(req) |
| 327 | } |
nothing calls this directly
no test coverage detected