diff --git a/.github/workflows/build-and-push-embedr-aws.yaml b/.github/workflows/build-and-push-embedr-aws.yaml index 23d1538fe5..a6b2d9c3e0 100644 --- a/.github/workflows/build-and-push-embedr-aws.yaml +++ b/.github/workflows/build-and-push-embedr-aws.yaml @@ -3,6 +3,7 @@ on: push: branches: - main + - echoprom_fix env: REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} diff --git a/bskyweb/cmd/embedr/server.go b/bskyweb/cmd/embedr/server.go index d8df4276f2..62427e70e7 100644 --- a/bskyweb/cmd/embedr/server.go +++ b/bskyweb/cmd/embedr/server.go @@ -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