Skills Development Sentry Pitfall Review

Sentry Pitfall Review

v20260311
sentry-known-pitfalls
Guides reviewers through Sentry configuration and runtime pitfalls, covering SDK init, DSN handling, sampling, error/transaction capture, and alert noise so teams can quickly spot and fix common issues.
Get Skill
395 downloads
Overview

Sentry Known Pitfalls

Prerequisites

  • Existing Sentry implementation to review
  • Access to SDK configuration
  • Understanding of current error patterns
  • Codebase access for fixes

Instructions

  1. Verify SDK initialization happens before app starts
  2. Check for single initialization point (no multiple init calls)
  3. Use framework-specific SDK package for your framework
  4. Ensure Error objects are captured (not strings)
  5. Verify beforeSend returns event or null explicitly
  6. Check DSN is in environment variables (not hardcoded)
  7. Review sample rates for production appropriateness
  8. Verify all transactions call finish() in try/finally
  9. Check source map URL prefix matches actual URLs
  10. Review alert configuration for threshold-based rules (avoid alert fatigue)

Output

  • Pitfalls identified in current setup
  • Fixes applied for each issue
  • Configuration validated
  • Best practices checklist completed

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

Overview

Execute common Sentry pitfalls and how to avoid them.

Info
Category Development
Name sentry-known-pitfalls
Version v20260311
Size 4.89KB
Updated At 2026-03-12
Language