Go modular http middleware to measure HTTP requests independent of metrics backend (with Prometheus and OpenCensus as backend implementations) and http framework/library
Gin
middleware now records the path using the regex from FullPath()
instead of the real URL, avoiding cardinality explosion.std
HTTP handler provider (std.HandlerProvider
) (used by various frameworks like Gorilla).Breaking change: The library has been refactored to be more flexible when adding new framework/libraries.
Reporter
interface as the service responsible of getting the data to be measured.middleware/std
instead of middleware
.http.Hijacker
and http.Flusher
interface.service
property to identify the service.