Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/sentry-known-pitfalls

@0d57af8
Run it yourself

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".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/sentry-known-pitfalls

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceserrors.md

≈346 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Error Handling Reference

Pitfall Symptom Root Cause Fix
Hardcoded DSN Spam events from attackers DSN in client bundle process.env.SENTRY_DSN or build-time injection
sampleRate: 1.0 10-50x cost overrun Every request traced tracesSampler with endpoint-specific rates
No flush() Zero events from Lambda/CLI Process exits before send await Sentry.flush(2000) before exit
beforeSend returns null All events silently dropped Missing return statement Always end with return event
Release mismatch Minified stack traces SDK vs CLI version differ Single SENTRY_RELEASE env var for both
Swallowed errors Cascading undefined failures Catch without re-throw Re-throw or return typed Result
No environment Dev noise in prod dashboard Missing config field environment: process.env.NODE_ENV
Wrong SDK import Build failure or 100KB bloat @sentry/node in browser Platform-specific SDK
Ignoring 429s Silent data loss at peak No rate limit strategy Spike protection + circuit breaker
No alerts Errors accumulate unnoticed Dashboard-only monitoring Three-tier alert rules

Tons of Skills by Intent Solutions | jeremylongshore.com

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a diagnostic tool for auditing Sentry SDK implementations for common configuration errors and performance anti-patterns. It uses standard search tools to identify issues and provides recommended code corrections. No malicious behaviors were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 10 allowed tools
ReadWriteEditGrepGlobBash(node:*)Bash(npm:*)Bash(npx:*)Bash(grep:*)Bash(find:*)
Other metadata
tags
[
  "saas",
  "sentry",
  "anti-patterns",
  "troubleshooting",
  "best-practices",
  "sdk",
  "configuration"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-known-pitfalls