Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggingRoundTripper ¶
func NewLoggingRoundTripper(transport http.RoundTripper, hclogLogger hclog.Logger) http.RoundTripper
NewLoggingRoundTripper creates a new logging round tripper. This complements Scaleway's own logging by focusing on timing, X-Request-Id tracking, and structured logging that aids in debugging performance issues.
Types ¶
type LoggingRoundTripper ¶
type LoggingRoundTripper struct {
// contains filtered or unexported fields
}
LoggingRoundTripper wraps an http.RoundTripper to log request/response metadata.
Click to show internal directories.
Click to hide internal directories.