mirror of https://gitlab.com/ngerakines/tavern.git
Misc cleanup
This commit is contained in:
parent
de1b5d31b1
commit
6b3059b62f
|
@ -1,8 +1,8 @@
|
||||||
package metrics
|
package metrics
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
@ -58,7 +58,7 @@ func (mm MetricsMiddleware) Handle(c *gin.Context) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
c.Next()
|
c.Next()
|
||||||
|
|
||||||
status := fmt.Sprintf("%d", c.Writer.Status())
|
status := strconv.Itoa(c.Writer.Status())
|
||||||
endpoint := c.FullPath()
|
endpoint := c.FullPath()
|
||||||
method := c.Request.Method
|
method := c.Request.Method
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue