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.

referencesintegration-pitfalls.md

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

Integration Pitfalls

Pitfall 5: Release Version Mismatch Between SDK and Source Maps

Sentry matches error stack frames to source maps using the release field. If SDK and CLI use different release strings, source maps never apply and you get minified traces.

// WRONG — version mismatch
// SDK:  Sentry.init({ release: "1.2.3" })
// CLI:  sentry-cli releases new "v1.2.3"   (note the "v" prefix)

// RIGHT — single source of truth
const SENTRY_RELEASE = `myapp@${process.env.GIT_SHA}`;
Sentry.init({ release: SENTRY_RELEASE });
# CI — same variable for SDK and CLI
export SENTRY_RELEASE="myapp@$(git rev-parse --short HEAD)"
npx sentry-cli releases new "$SENTRY_RELEASE"
npx sentry-cli sourcemaps upload --release="$SENTRY_RELEASE" --url-prefix="~/static/js" ./dist/
npx sentry-cli releases finalize "$SENTRY_RELEASE"

Pitfall 9: Ignoring 429 Too Many Requests

When quota is exceeded, Sentry returns 429 and the SDK silently drops events. Without monitoring, you lose data during peak traffic.

// Prevention: enable spike protection
// Sentry Dashboard > Settings > Spike Protection > Enable

// Client-side: circuit breaker pattern
let sentryDisabled = false;
let disabledUntil = 0;

Sentry.init({
  beforeSend(event) {
    if (sentryDisabled && Date.now() < disabledUntil) return null;
    sentryDisabled = false;
    return event;
  },
});

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