Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(m serveMux, clk clock.Clock, stats prometheus.Registerer, opts ...otelhttp.Option) http.Handler
Types ¶
type MeasuredHandler ¶
type MeasuredHandler struct {
// contains filtered or unexported fields
}
MeasuredHandler wraps an http.Handler and records prometheus stats
func (*MeasuredHandler) ServeHTTP ¶
func (h *MeasuredHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.