Merge pull request #8755 from bluesky-social/echoprom_fix

fix echoprom config
This commit is contained in:
Jaz
2025-07-30 15:15:01 -07:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
@@ -3,6 +3,7 @@ on:
push:
branches:
- main
- echoprom_fix
env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
+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