getsentry avatar

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-code

Installs 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
1event-catalog avatarcatalog-documentation-creatorevent-catalog/skillsGenerates EventCatalog documentation files (systems, services, agents, events, commands, queries, domains, flows, channels, containers, ADRs, data products, ent1.2Kskills.sh installs
2lum1104 avatarunderstand-explainlum1104/understand-anythingunderstand explain1.2Kskills.sh installs
3openai avatardocopenai/skillsUse when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the1.2Kskills.sh installs
4secondsky avatarsap-btp-developer-guidesecondsky/sap-skillsDevelops business applications on SAP Business Technology Platform (BTP) using CAP (Node.js/Java) or ABAP Cloud. Use when: building cloud applications on SAP BT1.1Kskills.sh installs
5inference-sh avatarlogo-design-guideinference-sh/skillsLogo design principles and AI image generation best practices for creating logos. Covers logo types, prompting techniques, scalability rules, and iteration work1.1Kskills.sh installs
6jnmetacode avatarwriting-plansjnmetacode/superpowers-zh当你有规格说明或需求用于多步骤任务时使用,在动手写代码之前1.1Kskills.sh installs