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

sentry-observability

实现 Sentry与日志、指标、APM 等可观测性系统的深度协同,支持错误事件与日志上下文、性能指标、分布式追踪的双向关联,并构建统一的可视化看板与告警联动机制。

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

Skills.MD

# Sentry Observability ## Prerequisites - Existing observability stack (logging, metrics, APM) - Trace ID correlation strategy - Dashboard platform (Grafana, Datadog, etc.) - Alert routing defined ## Instructions 1. Integrate logging library to send errors to Sentry as breadcrumbs 2. Add request ID tags for log correlation in Sentry scope 3. Track custom metrics using Sentry setMeasurement in transactions 4. Correlate with Prometheus by adding sentry_event_id label 5. Add APM trace IDs to Sentry events in beforeSend hook 6. Enable OpenTelemetry integration for automatic trace correlation 7. Create Grafana dashboard panels using Sentry API data 8. Configure PagerDuty integration for alert escalation 9. Add context links (logs, APM) to Slack alert templates 10. Establish consistent trace ID tagging across all observability tools ## Output - Sentry integrated with logging system - Metrics correlated with error events - Distributed traces connected across tools - Unified observability dashboard ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Sentry Integrations](https://docs.sentry.io/product/integrations/) - [OpenTelemetry Integration](https://docs.sentry.io/platforms/javascript/performance/instrumentation/opentelemetry/)

评论 0

还没有评论,来抢沙发。