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

/sentry-sdk-patterns

@0d57af8
Run it yourself

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

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referenceserrors.md

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

Error Handling Reference

Error Cause Solution
Scope leaking between requests Global scope mutations in async handlers Use withScope() / new_scope() for per-event context; never call Sentry.setTag() in request handlers
Duplicate events Error caught and re-thrown, captured at two layers Capture at one level only -- either middleware or handler, not both
Missing breadcrumbs on errors Breadcrumbs cleared after max count (default 100) Set maxBreadcrumbs in Sentry.init(); keep breadcrumbs focused on relevant categories
beforeSend returns undefined Missing return statement Always return event or null explicitly
Events grouped incorrectly Default stack-trace fingerprinting Use scope.setFingerprint() with semantic keys for known error classes
Sentry is not defined SDK not imported Verify import * as Sentry from '@sentry/node' and package installation
DSN parse error Malformed DSN string Copy DSN from Sentry project settings at sentry.io
Spans not appearing Missing tracing integration Set tracesSampleRate in Sentry.init() (e.g., 0.1 for 10% sampling)

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

    The skill provides standard developer guidance for using Sentry SDKs in TypeScript and Python, including error handling, performance spans, and PII scrubbing. No security risks were identified.

  • 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
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 4 allowed tools
ReadWriteEditGrep
Other metadata
tags
[
  "saas",
  "sentry",
  "python",
  "typescript",
  "best-practices",
  "error-handling"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-sdk-patterns