home / skills / jeremylongshore / claude-code-plugins-plus-skills / sentry-observability
This skill helps you integrate Sentry with your observability stack, enabling unified logging, metrics, and tracing across tools.
npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill sentry-observabilityReview the files below or copy the command above to add this skill to your agents.
---
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 <[email protected]>
---
# 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/)
This skill integrates Sentry into an existing observability stack to connect errors, logs, metrics, and traces. It focuses on trace ID correlation, automatic OpenTelemetry linkage, and creating unified dashboards and alert routing. Use it to centralize error context and make incident triage faster.
The skill configures logging libraries to send breadcrumbs and adds request IDs and Sentry event IDs to logs and metrics for cross-tool correlation. It wires Sentry transactions and custom measurements into your metrics system and injects APM trace IDs into Sentry events via beforeSend hooks and OpenTelemetry integration. Finally, it automates dashboard panel creation and alert integrations (PagerDuty, Slack) so incidents include links to logs, traces, and Sentry events.
Which observability tools are supported?
This approach works with common stacks: Grafana, Datadog, Prometheus, OpenTelemetry, and common APMs that expose trace IDs.
How do I correlate metrics and Sentry events?
Add a sentry_event_id label to metric series or logs, and use setMeasurement on Sentry transactions to surface custom metrics tied to errors.