Awesome Open Source
Awesome Open Source

Gin's middleware for request stats

Build Status codecov Go Report Card GoDoc

Lightweight Gin's middleware for request metrics


Start using it

Download and install it:

$ go get
import ""

Example usage:

package main

import (


func main() {
	r := gin.Default()
	r.GET("/stats", func(c *gin.Context) {
		c.JSON(http.StatusOK, stats.Report())

	// Listen and Server in

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
go (15,124
middleware (354
metrics (346
gin (88
stats (78
gin-gonic (18