1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 20:00:55 +00:00
This commit is contained in:
Ming Deng 2020-06-22 23:24:15 +08:00
parent e1386c448c
commit 3ab1e48217

View File

@ -35,7 +35,7 @@ func TestPrometheusMiddleWare(t *testing.T) {
}, },
Method: "POST", Method: "POST",
} }
vec := prometheus.NewSummaryVec(prometheus.SummaryOpts{}, []string{"pattern", "method", "status"}) vec := prometheus.NewSummaryVec(prometheus.SummaryOpts{}, []string{"pattern", "method", "status", "duration"})
report(time.Second, writer, request, vec) report(time.Second, writer, request, vec)
middleware.ServeHTTP(writer, request) middleware.ServeHTTP(writer, request)