Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MeasureTime ¶
func MeasureTime(op func()) float64
func NewDummyInstrumentationMiddleware ¶
A dummy middleware that inserts an event into the context then does nothing with it. Useful for testing other application middlewares that assume an event is present.
func NewInstrumentedHTTPMiddleware ¶
func NewInstrumentedHTTPMiddleware(logger log.Logger, metricsRegistry prometheus.Registerer, unloggedPaths []string, next http.Handler) http.Handler
Types ¶
type EventContextKey ¶
type EventContextKey struct{}
Click to show internal directories.
Click to hide internal directories.