sentry-known-pitfalls

Featured

Identify and fix common Sentry SDK pitfalls that cause silent data loss, cost overruns, and missed alerts. Covers 10 anti-patterns with fix code. Use when auditing Sentry config, debugging missing events, or reviewing SDK setup. Trigger: "sentry pitfalls", "sentry anti-patterns", "sentry mistakes", "why are sentry events missing".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Sentry Known Pitfalls ## Overview Ten production-grade Sentry SDK anti-patterns that silently break error tracking, inflate costs, or leave teams blind to failures. Each pitfall includes the broken pattern, root cause, and production-ready fix. For extended code samples and audit scripts, see [configuration pitfalls](references/configuration-pitfalls.md), [error capture pitfalls](references/error-capture-pitfalls.md), [SDK initialization pitfalls](references/sdk-initialization-pitfalls.md), [integration pitfalls](references/integration-pitfalls.md), and [monitoring pitfalls](references/monitoring-pitfalls.md). ## Prerequisites - Active Sentry project with `@sentry/node` >= 8.x or `@sentry/browser` >= 8.x - Access to the codebase containing `Sentry.init()` configuration - Environment variable management (`.env`, secrets manager, or CI/CD vars) ## Instructions ### Step 1: Scan for Existing Pitfalls ```bash # Hardcoded DSNs (Pitfall 1) grep -rn "ingest\.sentry\.io" --include="*.ts" --include="*.js" src/ # 100% sample rates (Pitfall 2) grep -rn "sampleRate.*1\.0" --include="*.ts" --include="*.js" src/ # Missing flush calls (Pitfall 3) grep -rn "Sentry\.flush\|Sentry\.close" --include="*.ts" --include="*.js" src/ # Wrong SDK imports (Pitfall 8) grep -rn "@sentry/node" --include="*.tsx" --include="*.jsx" src/ ``` ### Step 2: Pitfall 1 — Hardcoding DSN in Source Code DSN in source ships in client bundles and cannot be rotated without a deploy. Attackers flood your pro...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

sentry-common-errors

Troubleshoot common Sentry integration issues and fixes. Use when encountering Sentry errors, missing events, source map failures, rate limits, or configuration problems. Trigger: "sentry not working", "sentry errors missing", "fix sentry", "sentry troubleshoot", "sentry 429", "source maps not resolving", "sentry events not showing", "sentry flush", "sentry CORS".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-advanced-troubleshooting

Advanced Sentry troubleshooting for complex SDK issues, silent event drops, source map failures, distributed tracing gaps, and SDK conflicts. Use when events silently disappear, source maps fail to resolve, traces break across service boundaries, or the SDK conflicts with other libraries like OpenTelemetry or winston. Trigger with phrases like "sentry events missing", "sentry source maps broken", "sentry debug", "sentry not capturing errors", "sentry tracing gaps", "sentry memory leak", "sentry sdk conflict".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-reliability-patterns

Build reliable Sentry integrations with graceful degradation, circuit breakers, and offline queuing. Use when implementing fault-tolerant error tracking, handling SDK initialization failures, building retry logic for Sentry transports, or ensuring apps survive Sentry outages. Trigger with "sentry reliability", "sentry circuit breaker", "sentry offline queue", "sentry graceful degradation", "sentry failover", or "resilient sentry setup".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-sdk-patterns

Best practices for using Sentry SDK in TypeScript and Python. Use when implementing structured error context with scopes, breadcrumb strategies, beforeSend/beforeBreadcrumb filtering, custom fingerprinting, user context, or performance span creation. Trigger: "sentry best practices", "sentry patterns", "sentry sdk usage", "sentry scope", "sentry breadcrumbs", "sentry beforeSend", "sentry fingerprint".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-security-basics

Configure Sentry security settings and data protection. Use when setting up PII scrubbing, managing sensitive data, configuring data scrubbing rules, or hardening Sentry for compliance. Trigger with phrases like "sentry security", "sentry PII", "sentry data scrubbing", "secure sentry", "sentry GDPR".

2,266 Updated today
jeremylongshore