fix: filter Epic Stack Sentry healthcheck and bot noise#1093
Merged
Conversation
Fly healthchecks were generating Slow DB Query Sentry insights from prisma.user.count() on the tiny demo VM without indicating app issues. Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Filter React Router missing loader/action/method errors and orphaned healthcheck Prisma transactions so the public demo issue stream stays actionable. Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sentry project
epic-stackwas dominated by non-actionable noise on the public template demo:EPIC-STACK-2A) — Fly healthchecks callingprisma.user.count(). Orphaned Prisma spans still reached Sentry asprisma:client:operation.getInternalRouterErrorfamily (EPIC-STACK-22/28/21) — bots/scanners hittingPOST /without an action,GET /resources/theme-switchwithout a loader, andOPTIONS /.TypeError: Load failed(EPIC-STACK-2B) — one-off Mobile Safari network blip; ignore in Sentry (no code change).Changes
prisma.user.count()→prisma.$queryRaw\SELECT 1``handleErrorskips capturing those expected router errorsRisk
Low — monitoring/filter + lighter healthcheck query only.
Test Plan
vitest run app/utils/sentry-event-filters.test.tsnpm run lint/npm run typecheckChecklist
Screenshots
N/A (Sentry/monitoring + healthcheck probe only)