jeremylongshore/claude-code-plugins-plus-skills/sentry-common-errors
Claude Code and agent skill by jeremylongshore/claude-code-plugins-plus-skills
- community
Checking that the SKILL.md file is still in the repository.
'Troubleshoot common Sentry integration issues and fixes.
Install
npx vskill@latest install jeremylongshore/claude-code-plugins-plus-skills/sentry-common-errorsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jeremylongshore/claude-code-plugins-plus-skills/sentry-common-errors.
Sentry Common Errors
Overview
Diagnose and fix the most frequently encountered Sentry SDK integration issues across Node.js, browser, and Python environments. Covers DSN validation, missing events, source map failures, rate limiting, SDK initialization ordering, serverless flush patterns, CORS configuration, and environment tagging.
Prerequisites
- Sentry SDK installed (
@sentry/nodev8+,@sentry/browserv8+, orsentry-sdkfor Python) - Access to Sentry dashboard with project admin or member role
- Application logs available for inspection
sentry-cliinstalled for source map and release operations
Instructions
Step 1 — Detect the installed SDK and current configuration
!npm list @sentry/node @sentry/browser @sentry/react @sentry/nextjs 2>/dev/null | head -10 || echo "No Node.js Sentry SDK found"
!python3 -c "import sentry_sdk; print(f'sentry-sdk {sentry_sdk.VERSION}')" 2>/dev/null || echo "No Python sentry-sdk found"
!command -v sentry-cli >/dev/null && sentry-cli --version || echo "sentry-cli not installed"
Grep the project for Sentry initialization to identify the current configuration:
Step 2 — DSN not set or invalid DSN format
The DSN (Data Source Name) tells the SDK where to send events. Format: https://<public-key>@<org>.ingest.sentry.io/<project-id>
Symptoms: No events arrive. SDK silently does nothing. debug: true shows "No DSN provided."
Python equivalent:
Step 3 — Events not appearing in dashboard
Symptoms: Sentry.captureException() runs without errors, but nothing shows up in the Sentry web UI.
Root causes and fixes:
- `beforeSend` accidentally returning null:
- `sampleRate` set to 0:
- Missing `await Sentry.flush()` in serverless / CLI contexts:
Python (AWS Lambda):
- SDK initialized after error occurs:
Diagnostic checklist for missing events:
Step 4 — Source maps not resolving
Symptoms: Stack traces in Sentry show minified variable names and wrong line numbers.
Root cause 1 — Release version mismatch: The release in Sentry.init() must exactly match the release name used during sentry-cli upload.
Root cause 2 — URL prefix mismatch:
Root cause 3 — Source maps uploaded after error occurred: Sentry does not retroactively apply source maps. Upload before the release goes live.
Root cause 4 — Build tool not generating source maps:
Step 5 — 429 rate limit errors
Symptoms: Sentry returns HTTP 429. Events are dropped.
Check quota: Settings > Projects > [Project] > Client Keys > Configure > Rate Limiting.
Step 6 — SDK version conflicts
Symptoms: TypeError: Sentry.X is not a function, duplicate events, or missing integrations.
SDK v8 breaking change: @sentry/tracing is removed. Tracing is built into the core:
Step 7 — Wrong environment tag
Step 8 — CORS issues with browser SDK
The standard SDK sends to https://<org>.ingest.sentry.io which has permissive CORS. If you see CORS errors:
- CSP blocking — add
connect-src 'self' https://*.ingest.sentry.ioto your CSP - Tunnel misconfiguration — your tunnel endpoint must proxy and return CORS headers
- Ad blockers — use the
tunneloption to route through your domain
Step 9 — Node.js process exits before events are sent
The SDK batches events asynchronously. Short-lived processes must flush before exit.
Step 10 — Express "not instrumented" warning
Sentry must initialize before importing Express so it can monkey-patch HTTP modules:
Or use node --import ./instrument.mjs app.mjs.
Output
- Root cause identified from the diagnostic steps above
- Configuration fix applied and verified with a test event
debug: trueoutput confirming SDK initialization and event delivery- Test event visible in Sentry dashboard (search by Event ID)
debug: trueremoved after issue is resolved
Error Handling
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/.curated/sentry-common-errors/SKILL.md
Popularity
- Repository stars
- 2,514
- Repository forks
- 360
- 7-day trend score
- 39
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jeremylongshore/claude-code-plugins-plus-skills/sentry-common-errors)