Add Sentry error monitoring#68
Conversation
Greptile SummaryThis PR adds opt-in Sentry error monitoring for the hosted HTTP transport, gated behind
Confidence Score: 5/5Safe to merge — monitoring is strictly opt-in, disabled for stdio, and all capture paths are exception-safe so Sentry activity can never affect request behavior. The change is additive and well-isolated: Sentry is only initialized when SENTRY_DSN is explicitly configured on an HTTP transport, sensitive-field scrubbing is correct (including the normalized x_appwrite_key form), and the deduplication logic correctly prevents double-reporting through wrapped exception chains. Both the core module and its call sites are covered by unit tests. No existing behavior is altered for users who do not set SENTRY_DSN. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Enrich Sentry error context" | Re-trigger Greptile |
Summary
SENTRY_DSNTesting
uv run python -m unittest discover -s tests/unit -vuv run --group dev ruff check src testsuv run --group dev black --check src testsuv run --group dev pyright