Documentation ¶
Overview ¶
Package httptracer implements http tracing functionality
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPTracer ¶
HTTPTracer provides callback hook mechanism for HTTP transport.
type RoundTripTrace ¶
type RoundTripTrace struct { Trace HTTPTracer // User provides callback methods Transport http.RoundTripper // HTTP transport that needs to be intercepted }
RoundTripTrace interposes HTTP transport requests and respsonses using HTTPTracer hooks
func GetNewTraceTransport ¶
func GetNewTraceTransport(trace HTTPTracer, transport http.RoundTripper) RoundTripTrace
GetNewTraceTransport returns a traceable transport
Takes first argument a custom tracer which implements Response, Request() conforming to HTTPTracer interface. Another argument can be a default transport or a custom http.RoundTripper implementation
Click to show internal directories.
Click to hide internal directories.