sentry-observability
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".
When & Why to Use This Skill
The Sentry Observability skill streamlines the integration of Sentry with your existing DevOps stack, including logging, metrics, and APM tools. It enables developers and SREs to build a unified observability dashboard by correlating error events with distributed traces and system metrics, significantly reducing the Mean Time to Resolution (MTTR) for production incidents.
Use Cases
- Full-Stack Error Correlation: Automatically link Sentry error reports with application logs using request IDs and breadcrumbs to provide developers with immediate execution context.
- Distributed Tracing Integration: Connect Sentry transactions with OpenTelemetry and APM tools to visualize how errors impact specific microservices and user journeys.
- Unified Performance Dashboards: Export Sentry API data to Grafana or Datadog to create a single pane of glass for monitoring both system health and application-level exceptions.
- Automated Incident Response: Configure advanced alert routing by connecting Sentry to PagerDuty and Slack, ensuring critical errors are escalated with rich context like log links and trace IDs.
| name | sentry-observability |
|---|---|
| description | | |
| 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.