Documentation ¶
Overview ¶
Package http provides a client with included tracing capabilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶
type OptionFunc func(*TracedClient) error
OptionFunc definition for configuring the client in a functional way.
func CheckRedirect ¶ added in v0.68.0
CheckRedirect option for setting the CheckRedirect for the client.
func CircuitBreaker ¶
func CircuitBreaker(name string, set circuitbreaker.Setting) OptionFunc
CircuitBreaker option for setting up a circuit breaker.
func Timeout ¶
func Timeout(timeout time.Duration) OptionFunc
Timeout option for adjusting the timeout of the connection.
func Transport ¶ added in v0.45.0
func Transport(rt http.RoundTripper) OptionFunc
Transport option for setting the Transport for the client.
type TracedClient ¶
type TracedClient struct {
// contains filtered or unexported fields
}
TracedClient defines an HTTP client with tracing integrated.
Click to show internal directories.
Click to hide internal directories.