about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaz <ericvolp12@gmail.com>2025-07-30 15:15:01 -0700
committerGitHub <noreply@github.com>2025-07-30 15:15:01 -0700
commit045101286f2e144ed8bee88751bfbfe5f2a7f4b3 (patch)
tree5d3ceb94689858b93c05ebf194db7a565b3e7600
parent3ff42f1595727a40807a0d6876a133c65d6863f2 (diff)
parentb25677eb7f30263471f8a4a6a692d48bc6dc51dd (diff)
downloadvoidsky-045101286f2e144ed8bee88751bfbfe5f2a7f4b3.tar.zst
Merge pull request #8755 from bluesky-social/echoprom_fix
fix echoprom config
-rw-r--r--.github/workflows/build-and-push-embedr-aws.yaml1
-rw-r--r--bskyweb/cmd/embedr/server.go8
2 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/build-and-push-embedr-aws.yaml b/.github/workflows/build-and-push-embedr-aws.yaml
index 23d1538fe..a6b2d9c3e 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 d8df4276f..62427e70e 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