feat(observability): add product metrics for API, outbox and delivery

This commit is contained in:
shira committed 2026-10-06 19:48:15 +03:00
1 parent 560724e2aa
commit 94488e2b57
51 files changed
+3655 -68

No files matched your search

@@ -2044,7 +2044,7 @@ func TestPublicOperationPanicReturnsInternalProblem(t *testing.T) {
if strings.Contains(logs.String(), "jane@example.com") {
t.Fatalf("panic value with personal data reached the logs: %s", logs.String())
}
want := []recordedRequest{{route: "/api/v1/*", status: http.StatusInternalServerError}}
want := []recordedRequest{{route: "/api/v1/healthz", status: http.StatusInternalServerError}}
if fmt.Sprint(recorder.requests) != fmt.Sprint(want) {
t.Fatalf("metrics observed %v, want %v", recorder.requests, want)
}