(req *http.Request)
| 296 | } |
| 297 | |
| 298 | func (t telemetryDisablerTransport) RoundTrip(req *http.Request) (*http.Response, error) { |
| 299 | // If the request is aimed at an enterprise host, disable telemetry. |
| 300 | // Currently, requests that are sent to configured api_hosts will be treated as enterprise hosts, |
| 301 | // even though they may be GHEC with Data Residency. |
| 302 | if ghauth.IsEnterprise(getHostname(req)) { |
| 303 | t.telemetryDisabler.Disable() |
| 304 | } |
| 305 | return t.wrappedTransport.RoundTrip(req) |
| 306 | } |
nothing calls this directly
no test coverage detected