Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger(ctx context.Context) logrus.FieldLogger
Logger return the logger attached to context or the standard one.
func WithLoggerLevel ¶
WithLoggerLevel returns a context with logrus log entry.
Types ¶
type Transport ¶
type Transport struct {
http.RoundTripper
}
Transport is an http.RoundTripper that keeps track of the in-flight request and add hooks to report HTTP tracing events.
func NewTransport ¶
func NewTransport(base http.RoundTripper) *Transport
Click to show internal directories.
Click to hide internal directories.