Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BufferInterceptor ¶
BufferInterceptor returns a http interceptor that inserts log buffer into context.Context for sampling.Handler.
func IsSamplingHandler ¶
func RecoveryInterceptor ¶
RecoveryInterceptor returns a server interceptor that recovers from HTTP handler panic. It overrides default recovery in http to provide better log integration.
func RegisterUnixProtocol ¶
RegisterUnixProtocol registers a protocol handler to the provided http.Transport that can server requests to Unix domain sockets via the "unix" schemes.
Request URLs should have the following form:
unix:socket_file/request/path?query=val&...
The registered transport is based on a clone of the provided transport, and uses the same configuration: timeouts, TLS settings, and so on. Connection pooling should also work as expected.
Types ¶
This section is empty.