Filter expected MCP errors from Sentry#70
Conversation
Greptile SummaryThis PR improves Sentry noise reduction for the Appwrite MCP server by filtering expected MCP input errors and Appwrite 4xx exception chains from being captured, applying the same filtering inside
Confidence Score: 5/5Safe to merge. The filtering logic is well-bounded, all new helpers are defensive, and the added tests cover the key new paths. All changes are additive and exception-safe. The _before_send filter correctly reuses the existing _should_capture predicate, de-duplication via _already_captured works correctly because manual capture_exception marks the exception before re-raising, and _normalize_transaction only mutates events when tags unambiguously identify the MCP method. No silent data loss or behavioral regressions were found. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Narrow ValueError Sentry suppression" | Re-trigger Greptile |
233d1d5 to
cb2ebea
Compare
Summary
before_sendfor integration-captured handled exceptionsTests
uv run --group dev ruff check src testsuv run --group dev black --check src testsuv run --group dev pyrightuv run python -m unittest discover -s tests/unit -v