sentry-observability
将Sentry与可观测性堆栈集成。在连接Sentry到日志、指标、APM工具或构建统一可观测性仪表板时使用。触发词:'sentry可观测性','sentry日志集成','sentry指标','sentry datadog集成'。
📖 中文导读:将Sentry与可观测性堆栈集成。在连接Sentry到日志、指标、APM工具或构建统一可观测性仪表板时使用。触发词:'sentry可观测性','sentry日志集成','sentry指标','sentry datadog集成'。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: sentry-observability description: | Execute integrate Sentry with observability stack. Use when connecting Sentry to logging, metrics, APM tools, or building unified observability dashboards. Trigger with phrases like "sentry observability", "sentry logging integration", "sentry metrics", "sentry datadog integration". allowed-tools: Read, Write, Edit, Grep version: 1.0.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io
Sentry Observability
Prerequisites
- Existing observability stack (logging, metrics, APM)
- Trace ID correlation strategy
- Dashboard platform (Grafana, Datadog, etc.)
- Alert routing defined
Instructions
- Integrate logging library to send errors to Sentry as breadcrumbs
- Add request ID tags for log correlation in Sentry scope
- Track custom metrics using Sentry setMeasurement in transactions
- Correlate with Prometheus by adding sentry_event_id label
- Add APM trace IDs to Sentry events in beforeSend hook
- Enable OpenTelemetry integration for automatic trace correlation
- Create Grafana dashboard panels using Sentry API data
- Configure PagerDuty integration for alert escalation
- Add context links (logs, APM) to Slack alert templates
- 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.