Documentation ¶
Index ¶
- type TracingClient
- func (client *TracingClient) Do(req *http.Request) (resp *http.Response, err error)
- func (client *TracingClient) Get(url string) (resp *http.Response, err error)
- func (client *TracingClient) Head(url string) (resp *http.Response, err error)
- func (client *TracingClient) Post(url string, contentType string, body io.Reader) (resp *http.Response, err error)
- func (client *TracingClient) PostForm(url string, data url.Values) (resp *http.Response, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TracingClient ¶
TracingClient wraps a http.Client with an OpenTracing tracer
func Trace ¶
func Trace(tracer opentracing.Tracer, client *http.Client) *TracingClient
Trace wraps the client with a tracer so each request has its own span.
func (*TracingClient) Get ¶
func (client *TracingClient) Get(url string) (resp *http.Response, err error)
Get is the same as http.Client.Get but the request is traced
func (*TracingClient) Head ¶
func (client *TracingClient) Head(url string) (resp *http.Response, err error)
Head is the same as http.Client.Head but the request is traced
Click to show internal directories.
Click to hide internal directories.