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 ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.
Examples
See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.
Resources
Overview
Execute integrate Sentry with observability stack.