/sentry-sdk:sentry-sdkfrom sentry-sdk
Instruments apps with official Sentry SDKs, following the project's `## Sentry` profile. Use when adding or reviewing Sentry.init / sentry_sdk.init / sentry.Init, DSN config, @sentry/*, sentry-sdk or sentry-go packages, error capture, tracing and sampling, structured logs, metrics, cron check-ins, source maps, or SDK upgrades.
Ships in sentry-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Application-side work with official Sentry SDKs. It covers setup, configuration, errors, tracing, structured Logs, application metrics, and Crons.
Not for querying issues, events, or releases, or managing alerts, dashboards, and projects. Use the Sentry MCP tools (mcp__plugin_sentry-mcp-self-hosted_sentry__*, from the sentry-mcp-self-hosted plugin, if enabled) or the Sentry UI for that. For OpenTelemetry and Prometheus instrumentation without Sentry, use observability-instrumentation.
Sentry APIs, option names, defaults, and version gates change often. The references here record decisions and pitfalls; they are not an API manual. Before writing SDK code:
query-docs) with one of these IDs:
/getsentry/sentry-docs (all platforms; prefer this)/getsentry/sentry-javascript, /getsentry/sentry-python, /getsentry/sentry-go (SDK source and READMEs)docs.sentry.io/platforms/<platform>/.... A framework guide such as javascript/guides/nextjs beats the base-language page.Never port an API, option, or flush call from one SDK to another. Go's metrics API is sentry.NewMeter(ctx), not Sentry.metrics. Zerolog sends events, not Logs. Absence from the docs means "undocumented", not "impossible", so say so and stop rather than invent.
Before writing any Sentry code, search the project's CLAUDE.md and AGENTS.md files for a ## Sentry heading, for example with Grep on ^## Sentry, and read the section. It sets signals, scrubbing, breadcrumbs, sample rates, and DSN handling, and it overrides the generic defaults, because it records choices the project already made. Without one, use the generic defaults and offer to write the section. See references/profile.md.
beforeSend* privacy filters only when the user or the project profile asks. Noise and volume filters are a separate concern and fine to add.SENTRY_AUTH_TOKEN (used for source-map and debug-symbol upload) is a real secret, so keep it server-side and out of client bundles.MonitorConfig all touch the real Sentry org. MonitorConfig creates or updates monitors when it runs. Confirm first.sentry-cli, bundler plugins) need its base URL (SENTRY_URL or the plugin's url option); without it they upload to sentry.io and fail or leak.Read only the references the task needs.
| Task | Read |
|---|---|
Project profile (## Sentry section), generic defaults, writing the section | references/profile.md |
| Install, init, framework routing, release/environment, source maps, debug symbols, upgrades, OTel coexistence, "no events arrive" | references/setup.md |
| Integrations, scopes and enrichment, sampling vs filtering, draining/shutdown | references/configuration.md |
| Capturing exceptions or crashes, boundaries and middleware, expected errors, duplicates, fingerprints | references/errors.md |
| Spans, root boundaries, distributed propagation, trace sampling, OpenTelemetry | references/tracing.md |
| Structured Logs, logging-library bridges (Pino, Winston, slog, logging, Loguru, Logback…) | references/logs.md |
| Custom metrics such as counts, gauges, distributions, units, and cardinality | references/metrics.md |
Cron monitors, check-ins, heartbeats, withMonitor / monitor | references/crons.md |
After the topic reference, read the platform file for SDK-specific facts, version gates, and pitfalls. The version numbers are a snapshot and must be rechecked against current docs.
| Runtime | Read |
|---|---|
| Browser, React, Node, Bun, Deno, Next.js, Cloudflare, React Router framework mode, TanStack Start, React Native / Expo | references/platforms/javascript.md |
| Python | references/platforms/python.md |
| Go | references/platforms/go.md |
| Android, JVM Java/Kotlin, Kotlin Multiplatform | references/platforms/jvm-android.md |
| Apple (iOS, macOS, Swift) | references/platforms/apple.md |
| Flutter / Dart | references/platforms/flutter.md |
| .NET, PHP, Ruby, Rust, Elixir, PowerShell, Unity, Native C/C++, game engines, consoles | references/platforms/other.md |
When several runtimes ship together (Next.js client, server, and edge, or React Native JS and native), treat each as its own layer with its own init and one owner per handoff.
sentry-mcp-self-hosted, if enabled) instead of asking the user to look; otherwise ask the user to check the Sentry UI. Check exactly one arrival, the right release and environment, only the intended tags and attributes, and readable frames.references/configuration.md (opens in a new tab)references/crons.md (opens in a new tab)references/errors.md (opens in a new tab)references/logs.md (opens in a new tab)references/metrics.md (opens in a new tab)references/platforms/apple.md (opens in a new tab)references/platforms/flutter.md (opens in a new tab)references/platforms/go.md (opens in a new tab)references/platforms/javascript.md (opens in a new tab)references/platforms/jvm-android.md (opens in a new tab)references/platforms/other.md (opens in a new tab)references/platforms/python.md (opens in a new tab)references/profile.md (opens in a new tab)references/setup.md (opens in a new tab)references/tracing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin sentry-sdk