DumpTraces attaches HTTP events tracer to the client's transport.
(ctx context.Context, client *http.Client)
| 110 | |
| 111 | // DumpTraces attaches HTTP events tracer to the client's transport. |
| 112 | func DumpTraces(ctx context.Context, client *http.Client) { |
| 113 | client.Transport = traceTransport{ |
| 114 | tracer: NewDebugClientTrace(ctx), |
| 115 | transport: client.Transport, |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | // WithClientTrace wraps context with a httptrace.ClientTrace for debugging. |
| 120 | func WithClientTrace(ctx context.Context) context.Context { |
no test coverage detected
searching dependent graphs…