HTTPClient creates a new http.Client
(name string)
| 984 | |
| 985 | // HTTPClient creates a new http.Client |
| 986 | func (container *Container) HTTPClient(name string) *http.Client { |
| 987 | container.logger.Debug(fmt.Sprintf("creating %s %T", name, http.DefaultClient)) |
| 988 | return &http.Client{ |
| 989 | Timeout: 60 * time.Second, |
| 990 | Transport: container.HTTPRoundTripper(name), |
| 991 | } |
| 992 | } |
| 993 | |
| 994 | // HTTPRoundTripper creates an open telemetry http.RoundTripper |
| 995 | func (container *Container) HTTPRoundTripper(name string) http.RoundTripper { |
no test coverage detected