金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

sentry-reliability-patterns

sentry-reliability-patterns 是面向开发运维的 Agent Skill,来自 jeremylongshore/claude-code-plugins-plus-skills。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Build reliable Sentry integrations. Use when handling SDK failures gracefully, implementing retry logic, or ensuring error tracking uptime. Trigger with phrases like "sentry reliability", "sentry failover", "sentry sdk failure handling", "resilient sentry setup".

SKILL.md

下载 MD ↓
namesentry-reliability-patterns
descriptionBuild reliable Sentry integrations. Use when handling SDK failures gracefully, implementing retry logic, or ensuring error tracking uptime. Trigger with phrases like "sentry reliability", "sentry failover", "sentry sdk failure handling", "resilient sentry setup".
allowed-toolsRead, Write, Edit, Grep
version1.0.0
licenseMIT
authorJeremy Longshore <[email protected]>

Sentry Reliability Patterns

Prerequisites

  • Understanding of failure modes
  • Fallback logging strategy
  • Network reliability characteristics
  • Graceful shutdown requirements

Instructions

  1. Wrap Sentry.init with try/catch for graceful initialization failure handling
  2. Implement fallback capture function that logs locally if Sentry fails
  3. Add retry with exponential backoff for network failures
  4. Implement offline event queue for intermittent connectivity
  5. Add circuit breaker pattern to skip Sentry after repeated failures
  6. Configure request timeout with wrapper function
  7. Implement graceful shutdown with Sentry.close() on SIGTERM
  8. Set up dual-write pattern to multiple error trackers for redundancy
  9. Create health check endpoint to verify Sentry connectivity
  10. Test all failure scenarios to ensure application continues operating

Output

  • Graceful degradation implemented
  • Circuit breaker pattern applied
  • Offline queue configured
  • Dual-write reliability enabled

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources

来源:jeremylongshore/claude-code-plugins-plus-skills · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本