fix typo of prometheus
This commit is contained in:
@@ -31,7 +31,7 @@ var (
|
||||
})
|
||||
)
|
||||
|
||||
func PrometheousHandler(path string) func(http.Handler) http.Handler {
|
||||
func PromethousHandler(path string) func(http.Handler) http.Handler {
|
||||
return func(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
startTime := timex.Now()
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func TestPromMetricHandler(t *testing.T) {
|
||||
promMetricHandler := PrometheousHandler("/user/login")
|
||||
promMetricHandler := PromethousHandler("/user/login")
|
||||
handler := promMetricHandler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}))
|
||||
Reference in New Issue
Block a user