mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 20:51:29 +00:00
commit
1060dc7df8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user