sentry-instrumentation-guide

Decide which telemetry signal to emit when instrumenting code.

1|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/getsentry/plugin-claude --skill sentry-instrumentation-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-instrumentation-guide
Source: https://github.com/getsentry/plugin-claude/tree/main/skills/sentry-instrumentation-guide
Command: npx skills add https://github.com/getsentry/plugin-claude --skill sentry-instrumentation-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Determines the correct telemetry signal to emit during instrumentation (error, span, span attribute, log, or metric) to ensure data is useful and avoid miscategorization.

Core Features & Use Cases

  • Provides a decision framework to select the appropriate signal for a given event or value.
  • Helps review existing instrumentation for coverage gaps and consistency across services.
  • Guides coding agents with a clear rule for what to emit, delegating how to wire up the signal to the corresponding sentry-*-sdk skills.

Quick Start

Describe a scenario and have this rule determine the correct signal to emit for instrumentation.

Frequently Asked Questions about sentry-instrumentation-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right telemetry signal for instrumenting my code?

To choose the right telemetry signal for instrumentation, use a decision framework that evaluates whether an event should be an error, trace, log, or metric, ensuring useful data and avoiding miscategorization across your service.

When should I emit a metric instead of a log for application telemetry?

Emit a metric instead of a log when you need to track aggregate numerical values over time, whereas logs capture discrete events; applying a telemetry decision framework resolves these overlaps and retention considerations.

What's the best way to review existing instrumentation for coverage gaps?

Review existing instrumentation for coverage gaps by applying a signal decision framework to check consistency across services, ensuring every event is correctly categorized as an error, span, log, or metric.

Can I use this telemetry framework to guide a coding agent on signal selection?

Yes, you can guide coding agents by providing a clear rule for what telemetry signal to emit, delegating the specific wiring of errors, traces, logs, or metrics to the corresponding SDK skills.

Does this framework align with Sentry SDK guidance for emitting errors and traces?

Yes, the instrumentation decision framework explicitly aligns with Sentry SDK guidance to determine the correct signal, resolving overlaps between errors, spans, span attributes, logs, and metrics.