// Apply modifies an http client's transport to inject the X-Request-ID header
Apply modifies an http client's transport to inject the X-Request-ID header
// Apply modifies an http client ' s transport to inject the X - Request - ID header
func Apply(c *http.Client) {
	log.Debug("injecting request tracing into http client")
	var transport http.RoundTripper
	if c.Transport == nil {
		transport = http.DefaultTransport
	} else {
		transport = c.Transport
	}
	rt := traceableRoundTripper{transport}
	c.Transport = &rt
}
func Apply ( c * http . Client ) { log . Debug ( " " ) var transport http . RoundTripper if c . Transport == nil { transport = http . DefaultTransport } else { transport = c . Transport } rt := traceableRoundTripper { transport } c . Transport = & rt }
Apply modifies an http client's transport to inject the X-Request-ID header
Apply modifies an http client ' s transport to inject the X - Request - ID header