Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstrumentationMiddleware ¶
type InstrumentationMiddleware struct {
// contains filtered or unexported fields
}
InstrumentationMiddleware TODO
func NewInstrumentation ¶
func NewInstrumentation(reg prometheus.Registerer, name string) *InstrumentationMiddleware
NewInstrumentation provides default Instrumentation middleware.
func (*InstrumentationMiddleware) NewHandler ¶
func (m *InstrumentationMiddleware) NewHandler(handlerName string, handler http.Handler) http.HandlerFunc
NewHandler wraps the given HTTP handler for instrumentation.
type LoggerMiddleware ¶
type LoggerMiddleware struct {
// contains filtered or unexported fields
}
LoggerMiddleware TODO
func NewLogger ¶
func NewLogger(logger log.Logger) *LoggerMiddleware
NewLogger provides new logging middleware.
func (*LoggerMiddleware) NewHandler ¶
func (m *LoggerMiddleware) NewHandler(handlerName string, next http.Handler) http.HandlerFunc
NewHandler TODO
Click to show internal directories.
Click to hide internal directories.