fix echoprom config

This commit is contained in:
Jaz Volpert
2025-07-30 21:42:26 +00:00
parent 3ff42f1595
commit 4393a275ae
+7 -1
View File
@@ -154,7 +154,13 @@ func serve(cctx *cli.Context) error {
RedirectCode: http.StatusFound,
}))
e.Use(echoprometheus.NewMiddleware(""))
echoprom := echoprometheus.NewMiddlewareWithConfig(
echoprometheus.MiddlewareConfig{
DoNotUseRequestPathFor404: true,
},
)
e.Use(echoprom)
//
// configure routes