
Sentry Instrumentation Guide
You're adding Sentry instrumentation and can't decide if something should be an error, span, log, or metric. This skill is the decision framework: errors need stack traces and get tracked as Issues, traces show where time went in the request waterfall, logs capture what was true at one decision point, and metrics let you chart trends and alert on rates. It walks through the overlaps (span attribute vs metric, log vs span) with a tiebreaker table, then shows a fully instrumented request handler in Python and TypeScript. Decides what to emit, not how to wire it up. Hand off to the language specific SDK skills for actual implementation once you know which signal you need.
- skills.sh installs
- 1.2K
- GitHub stars
- 277
- last updated
- Aug 21, 2026
Install
$ npx -y skills add getsentry/sentry-for-ai --skill sentry-instrumentation-guide --agent claude-codeInstalls into .claude/skills of the current project.
Files
All Skills > Feature Setup > Instrumentation Guide
Sentry Instrumentation Guide: When to Reach for What
Errors, traces, logs, and metrics are the four kinds of telemetry most apps run on, and they overlap enough that the choice is rarely obvious. You can stuff context into a span attribute instead of logging it. You can count log lines instead of emitting a metric. You can add a duration to a log and call it a span.
But each signal exists because it answers a different question and feeds a different workflow once it lands. Reaching for the wrong one means the data is technically there but useless for the job you actually have later. This skill is the decision framework: given a value or an event in front of you, which signal should carry it, and why.
It decides what to emit. For how to turn each pillar on for a given stack, hand off to the
sentry-*-sdk skills and sentry-setup-ai-monitoring.
Invoke This Skill When
Sponsors
Details
- Repository
- github.com/getsentry/sentry-for-ai
- Categories
- Documentation, AI & Agent Building, Debugging
- First seen
- Jul 14, 2026
More from getsentry/sentry-for-ai
All 31- Sentry Fix Issues10.4K
- Sentry Create Alert4.2K
- Sentry React Native Sdk4.2K
- Sentry Nextjs Sdk3.7K
- Sentry Sdk Setup3.7K
- Sentry Workflow3.6K
- Sentry Cocoa Sdk3.6K
- Sentry Node Sdk3.4K
- Sentry React Sdk3.2K
- Sentry Sdk Upgrade3.2K
- Sentry Setup Ai Monitoring3K
- Sentry Browser Sdk3K
- Sentry Feature Setup2.9K
- Sentry Cloudflare Sdk2.7K
- Sentry Python Sdk2.6K
- Sentry Nestjs Sdk2.6K
- Sentry Code Review2.5K
- Sentry Sdk Skill Creator2.5K
- Sentry Otel Exporter Setup2.5K
- Sentry Android Sdk2.4K
- Sentry Dotnet Sdk2.3K
- Sentry Php Sdk2.3K
- Sentry Flutter Sdk2.3K
- Sentry Pr Code Review2.3K