返回 Skill 列表
extension
分类: 开发与工程无需 API Key

sentry-performance-tuning

优化Sentry性能监控配置。在调整采样率、减少开销或提高性能数据质量时使用。可以通过诸如“sentry performance optimize”、“tune sentry tracing”、“sentry overhead”、“improve sentry performance”等短语触发。

person作者: jakexiaohubgithub

Sentry Performance Tuning

Prerequisites

  • Performance monitoring enabled
  • Transaction volume metrics available
  • Critical paths identified
  • Performance baseline established

Instructions

  1. Implement dynamic sampling with tracesSampler for endpoint-specific rates
  2. Configure environment-based sample rates (higher in dev, lower in prod)
  3. Remove unused integrations to reduce SDK overhead
  4. Limit breadcrumbs to reduce memory usage
  5. Use parameterized transaction names to avoid cardinality explosion
  6. Create spans only for meaningful slow operations
  7. Configure profile sampling sparingly for performance-critical endpoints
  8. Measure SDK initialization time and ongoing overhead
  9. Implement high-volume optimization with aggressive filtering
  10. Monitor SDK performance metrics and adjust configuration

Output

  • Optimized sample rates configured
  • SDK overhead minimized
  • Transaction naming standardized
  • Resource usage reduced

Error Handling

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

Examples

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

Resources