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

sentry-cost-tuning

通过调整采样率、过滤无用事件、限制事件大小和关闭非必要功能,降低 Sentry 的事件摄入量与成本,优化配额使用效率,并配置支出预警以实现长期成本管控。

0.0 (0) 144 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Sentry Cost Tuning ## Prerequisites - Current Sentry billing plan known - Event volume metrics available - High-volume error sources identified - Cost reduction target defined ## Instructions 1. Review current usage and cost breakdown by event type 2. Implement error sampling to reduce volume (e.g., 50% sampleRate) 3. Configure aggressive transaction sampling (1% or lower for high-volume) 4. Add ignoreErrors and denyUrls patterns for common noise 5. Enable server-side inbound filters in project settings 6. Set project rate limits to cap maximum events 7. Reduce event size with maxValueLength and maxBreadcrumbs limits 8. Disable unused features (replays, profiling) if not needed 9. Configure tiered environment settings (disable in dev, reduce in staging) 10. Set up spend alerts and monitor cost projections monthly ## Output - Optimized sample rates - Event filtering rules - Cost projection updated - Spend alerts configured ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Sentry Pricing](https://sentry.io/pricing/) - [Quota Management](https://docs.sentry.io/product/accounts/quotas/)

评论 0

还没有评论,来抢沙发。