Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(url *url.URL, opts ...HandlerOption) http.Handler
Types ¶
type HandlerOption ¶
type HandlerOption func(h *handlerConfiguration)
func HandlerInstrumenter ¶
func HandlerInstrumenter(instrumenter handlerInstrumenter) HandlerOption
func Logger ¶
func Logger(logger log.Logger) HandlerOption
func ReadMiddleware ¶
func ReadMiddleware(m func(http.Handler) http.Handler) HandlerOption
ReadMiddleware adds a middleware for all read operations.
func Registry ¶
func Registry(r *prometheus.Registry) HandlerOption
func SpanRoutePrefix ¶
func SpanRoutePrefix(spanRoutePrefix string) HandlerOption
SpanRoutePrefix adds a prefix before the value of route tag in tracing spans.
Click to show internal directories.
Click to hide internal directories.