Documentation ¶
Overview ¶
Package irt provides Instrumented http.RoundTrippers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogger ¶
func WithLogger(t http.RoundTripper, printf func(format string, v ...interface{})) http.RoundTripper
WithLogger returns http.RoundTripper with request/response logger.
func WithMetrics ¶
func WithMetrics(t http.RoundTripper, subsystem string) (http.RoundTripper, prometheus.Collector)
WithMetrics returns http.RoundTripper instrumented with returned Prometheus metrics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.