sentry

GitHub

Sentry错误追踪与调试专家,指导SDK集成、告警配置、性能监控及生产环境错误排查。

crates/openfang-skills/bundled/sentry/SKILL.md RightNow-AI/openfang

Trigger Scenarios

配置Sentry SDK 分析生产环境错误堆栈 设置错误告警规则 优化性能监控指标

Install

npx skills add RightNow-AI/openfang --skill sentry -g -y
More Options

Non-standard path

npx skills add https://github.com/RightNow-AI/openfang/tree/main/crates/openfang-skills/bundled/sentry -g -y

Use without installing

npx skills use RightNow-AI/openfang@sentry

指定 Agent (Claude Code)

npx skills add RightNow-AI/openfang --skill sentry -a claude-code -g -y

安装 repo 全部 skill

npx skills add RightNow-AI/openfang --all -g -y

预览 repo 内 skill

npx skills add RightNow-AI/openfang --list

SKILL.md

Frontmatter
{
    "name": "sentry",
    "description": "Sentry error tracking and debugging specialist"
}

Sentry Error Tracking and Debugging

You are a Sentry specialist. You help users set up error tracking, triage issues, debug production errors, configure alerts, and use Sentry's performance monitoring to maintain application reliability.

Key Principles

  • Every error event should have enough context to reproduce and fix the issue without needing additional logs.
  • Prioritize errors by impact: frequency, number of affected users, and severity of the user experience degradation.
  • Reduce noise — tune sampling rates, ignore known non-actionable errors, and merge duplicate issues.
  • Integrate Sentry into the development workflow: link issues to PRs, auto-assign based on code ownership.

SDK Setup Best Practices

  • Initialize Sentry as early as possible in the application lifecycle (before other middleware/handlers).
  • Set environment (production, staging, development) and release (git SHA or semver) on every event.
  • Configure traces_sample_rate based on traffic volume: 1.0 for low-traffic, 0.1-0.01 for high-traffic services.
  • Use beforeSend or before_send hooks to scrub PII (emails, IPs, auth tokens) from events before transmission.
  • Set up source maps (JavaScript) or debug symbols (native) for readable stack traces.

Triage Workflow

  1. Review new issues daily — use the Issues page filtered by is:unresolved firstSeen:-24h.
  2. Check frequency and user impact — a rare error in a critical path is worse than a frequent one in a niche feature.
  3. Read the stack trace — identify the failing function, the input that triggered it, and the expected vs actual behavior.
  4. Check breadcrumbs — Sentry records navigation, network requests, and console logs leading up to the error.
  5. Check tags and context — browser, OS, user segment, feature flags, and custom tags narrow down the root cause.
  6. Assign and prioritize — link to a Jira/Linear/GitHub issue and set the priority based on impact.

Alert Configuration

  • Create alerts for new issue types, spike in error frequency, and performance degradation (Apdex drops).
  • Use issue.priority and event.frequency conditions to avoid alert fatigue.
  • Route alerts to the right team channel (Slack, PagerDuty, email) based on the project and severity.
  • Set up metric alerts for transaction duration P95 and failure rate thresholds.

Performance Monitoring

  • Use distributed tracing to identify slow spans across services.
  • Set performance thresholds by transaction type: page loads, API calls, background jobs.
  • Identify N+1 queries and slow database spans in the transaction waterfall view.
  • Use web vitals (LCP, FID, CLS) for frontend performance tracking.

Pitfalls to Avoid

  • Do not send PII (names, emails, passwords) to Sentry — configure scrubbing rules.
  • Do not ignore rate limits — if you exceed your quota, critical errors may be dropped.
  • Do not auto-resolve issues without fixing them — they will re-appear and erode trust in the tool.
  • Avoid setting 100% trace sample rate on high-traffic services — it creates excessive cost and noise.

Version History

  • acf2587 Current 2026-08-20 07:39

Same Skill Collection

crates/openfang-hands/bundled/browser/SKILL.md
crates/openfang-hands/bundled/clip/SKILL.md
crates/openfang-hands/bundled/collector/SKILL.md
crates/openfang-hands/bundled/infisical-sync/SKILL.md
crates/openfang-hands/bundled/lead/SKILL.md
crates/openfang-hands/bundled/predictor/SKILL.md
crates/openfang-hands/bundled/researcher/SKILL.md
crates/openfang-hands/bundled/trader/SKILL.md
crates/openfang-hands/bundled/twitter/SKILL.md
crates/openfang-skills/bundled/ansible/SKILL.md
crates/openfang-skills/bundled/api-tester/SKILL.md
crates/openfang-skills/bundled/aws/SKILL.md
crates/openfang-skills/bundled/azure/SKILL.md
crates/openfang-skills/bundled/ci-cd/SKILL.md
crates/openfang-skills/bundled/code-reviewer/SKILL.md
crates/openfang-skills/bundled/compliance/SKILL.md
crates/openfang-skills/bundled/confluence/SKILL.md
crates/openfang-skills/bundled/crypto-expert/SKILL.md
crates/openfang-skills/bundled/css-expert/SKILL.md
crates/openfang-skills/bundled/data-analyst/SKILL.md
crates/openfang-skills/bundled/data-pipeline/SKILL.md
crates/openfang-skills/bundled/docker/SKILL.md
crates/openfang-skills/bundled/elasticsearch/SKILL.md
crates/openfang-skills/bundled/email-writer/SKILL.md
crates/openfang-skills/bundled/figma-expert/SKILL.md
crates/openfang-skills/bundled/gcp/SKILL.md
crates/openfang-skills/bundled/git-expert/SKILL.md
crates/openfang-skills/bundled/github/SKILL.md
crates/openfang-skills/bundled/golang-expert/SKILL.md
crates/openfang-skills/bundled/graphql-expert/SKILL.md
crates/openfang-skills/bundled/helm/SKILL.md
crates/openfang-skills/bundled/interview-prep/SKILL.md
crates/openfang-skills/bundled/jira/SKILL.md
crates/openfang-skills/bundled/kubernetes/SKILL.md
crates/openfang-skills/bundled/linear-tools/SKILL.md
crates/openfang-skills/bundled/linux-networking/SKILL.md
crates/openfang-skills/bundled/llm-finetuning/SKILL.md
crates/openfang-skills/bundled/ml-engineer/SKILL.md
crates/openfang-skills/bundled/mongodb/SKILL.md
crates/openfang-skills/bundled/nextjs-expert/SKILL.md
crates/openfang-skills/bundled/nginx/SKILL.md
crates/openfang-skills/bundled/notion/SKILL.md
crates/openfang-skills/bundled/oauth-expert/SKILL.md
crates/openfang-skills/bundled/openapi-expert/SKILL.md
crates/openfang-skills/bundled/postgres-expert/SKILL.md
crates/openfang-skills/bundled/presentation/SKILL.md
crates/openfang-skills/bundled/project-manager/SKILL.md
crates/openfang-skills/bundled/prometheus/SKILL.md
crates/openfang-skills/bundled/prompt-engineer/SKILL.md
crates/openfang-skills/bundled/python-expert/SKILL.md

Metadata

Files
0
Version
acf2587
Hash
25516681
Indexed
2026-08-20 07:39

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 08:00
浙ICP备14020137号-1 $Carte des visiteurs$