首页/ AI 技能 / @skilllib/skill-2117939930272416871
Skill站外收录 @skilllib/skill-2117939930272416871

sentry-sdk-patterns

提供 TypeScript 和 Python 中 Sentry SDK 的标准化集成方案,涵盖错误捕获、上下文追踪、性能监控与问题分组优化,确保错误处理逻辑统一、可维护且高效。

0.0 (0) 19 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# Sentry Sdk Patterns ## Prerequisites - Sentry SDK installed and configured - Understanding of error handling concepts - Familiarity with async/await patterns ## Instructions 1. Create a centralized error handler module for consistent error capture 2. Implement scoped context for transactions and operations 3. Add structured breadcrumbs for debugging context 4. Configure error boundaries in frameworks (React, Vue, etc.) 5. Use custom fingerprinting for better issue grouping 6. Implement async error handling with proper scope propagation 7. Add performance tracing for critical paths 8. Configure sampling rates based on traffic volume See `{baseDir}/references/implementation.md` for detailed implementation guide. ## Output - Clean, maintainable error handling code - Consistent error context across application - Efficient Sentry SDK usage ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Sentry SDK Docs](https://docs.sentry.io/platforms/) - [Sentry Best Practices](https://docs.sentry.io/product/issues/best-practices/)

评论 0

还没有评论,来抢沙发。