Merge pull request #8755 from bluesky-social/echoprom_fix
fix echoprom config
This commit is contained in:
@@ -3,6 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- echoprom_fix
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
|
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
|
||||||
|
|||||||
@@ -154,7 +154,13 @@ func serve(cctx *cli.Context) error {
|
|||||||
RedirectCode: http.StatusFound,
|
RedirectCode: http.StatusFound,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
e.Use(echoprometheus.NewMiddleware(""))
|
echoprom := echoprometheus.NewMiddlewareWithConfig(
|
||||||
|
echoprometheus.MiddlewareConfig{
|
||||||
|
DoNotUseRequestPathFor404: true,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
e.Use(echoprom)
|
||||||
|
|
||||||
//
|
//
|
||||||
// configure routes
|
// configure routes
|
||||||
|
|||||||
Reference in New Issue
Block a user