Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstrumentationMiddleware ¶
type InstrumentationMiddleware interface { // NewHandler wraps the given HTTP handler for instrumentation. NewHandler(handlerName string, handler http.Handler) http.HandlerFunc }
InstrumentationMiddleware holds necessary metrics to instrument an http.Server and provides necessary behaviors.
func NewInstrumentationMiddleware ¶
func NewInstrumentationMiddleware(reg *prometheus.Registry) InstrumentationMiddleware
NewInstrumentationMiddleware provides default InstrumentationMiddleware.
func NewNopInstrumentationMiddleware ¶
func NewNopInstrumentationMiddleware() InstrumentationMiddleware
NewNopInstrumentationMiddleware provides a InstrumentationMiddleware which does nothing.
Click to show internal directories.
Click to hide internal directories.