sentry-observability
Operate Sentry end-to-end — error monitoring, performance tracing, session replay, profiling, release health, source-map upload, ownership routing, alert…
Skill by SwapnilPopat
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/swapnilpopat-sentry-observability
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, devops, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/sentry-observability
What's inside
- Skill name
sentry-observability- Description
- Operate Sentry end-to-end — error monitoring, performance tracing, session replay, profiling, release health, source-map upload, ownership routing, alert tuning, issue triage, and CI integration via sentry-cli — across web, mobile, and backend stacks. Use when instrumenting an app, wiring releases into deploy pipelines, or running incident-grade triage. Requires SENTRY_AUTH_TOKEN (org-scoped, `project:releases project:write`), project DSN, and (for source maps) `org` + `project` slugs.
- License
- MIT
- Instructions
- 166 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Sentry Observability
Wire Sentry into apps and pipelines for actionable signals: linked errors-to-replays-to-traces, clean release health, low-noise alerts, and unambiguous ownership.
## Stack Baseline (2026)
| Concern | Choice | Notes |
|---|---|---|
| SDKs | `@sentry/{browser,node,nextjs,react,vue,angular,sveltekit,astro,remix}` ≥ 9.x; `sentry-python` ≥ 2.x; `sentry-java` ≥ 8.x; `sentry-cocoa` ≥ 8.x; `sentry-android` ≥ 8.x | OpenTelemetry-native; auto-instrumentation by default |
| Tracing | `tracesSampleRate` (or `tracesSampler` for path-based) | Start at 0.1; raise per-route as needed |
| Replay | `@sentry/replay` integration; `replaysSessionSampleRate` low (0.01), `replaysOnErrorSampleRate` high (1.0) | Mask PII by default |
| Profiling | `@sentry/profiling-node`, browser profiling beta | Sampled on top of traces |
| Cron monitors | `Sentry.cron(...)` / monitor slug check-ins | Replaces dead-man-switch tooling |
| Source maps | `sentry-cli sourcemaps upload` (or framework wizard / Vite/webpack/rspack plugin) | Inject `Debug ID` for reliable resolution |
| Releases | Release name = git SHA or semver; finalize after deploy | Required for regression detection |
| Environments | Stable taxonomy: `dev`, `ci`, `staging`, `production` | Tag every event |
| Alerts | Issue alerts (regression, frequency, new-issue) + Metric alerts (SLO/throughput) | Route via Teams/Slack/PagerDuty |
| Ownership | `.sentry/codeowners` + path/url rules in project settings | Auto-assign + auto-route |
| Data retention / scrub | `beforeSend`, server-side data scrubbers, `sendDefaultPii: false` | GDPR/CCPA discipline |
| CI tool | `getsentry/action-release@v3` (GitHub Actions) or raw `sentry-cli` | |
## When to Use
- Greenfield app instrumentation (browser, Node, Python, mobile).
- Adding releases + source maps to a CI/CD pipeline.
- Tuning alerts that are too noisy or too quiet.
- Setting up cron/scheduled-job health monitoring.
- Diagnosing an incident with replay + trace + profile correlation.
## Prerequisites
- Sentry org and project created; DSN copied.
- `SENTRY_AUTH_TOKEN` (org-level internal integration token) exported in CI.
- `SENTRY_ORG` and `SENTRY_PROJECT` slugs exported.
- Build emits source maps (hidden, not served publicly).
- Release naming convention agreed (recommend `${SERVICE}@${GIT_SHA}`).
## Instructions
1. **Initialize the SDK** as early as possible. Browser (Vite/React example):
```ts
// src/instrument.ts (imported FIRST in main.ts)
import * as Sentry from "@sentry/react";
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
environment: import.meta.env.MODE,
release: import.meta.env.VITE_RELEASE, // ${SERVICE}@${GIT_SHA}
integrations: [
Sentry.browserTracingIntegration(),
Sentry.replayIntegration({ maskAllText: true, blockAllMedia: true }),
],
tracesSampleRate: 0.1,
replaysSessionSampleRate: 0.01,
replaysOnErrorSampleRate: 1.0,
sendDefaultPii: false,
beforeSend(event) {
if (event.request?.cookies) delete event.request.cookies;
return event;
},
});
```
2. **Backend (Node)** — must be the very first import:
```ts
// instrument.ts (preloaded via `node --import ./instrument.js`)
import * as Sentry from "@sentry/node";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
release: process.env.RELEASE,
integrations: [nodeProfilingIntegration()],
tracesSampleRate: 0.1,
profilesSampleRate: 1.0, // sampled on top of traces
});
```
3. **Wire releases into CI** (GitHub Actions):
```yaml
- uses: getsentry/action-release@v3
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: my-org
SENTRY_PROJECT: web
with:
environment: production
version: web@${{ github.sha }}
sourcemaps: ./dist
set_commits: auto
finalize: true
```
4. **Or, raw `sentry-cli` in any pipeline**:
```bash
RELEASE="web@$(git rev-parse HEAD)"
sentry-cli releases new "$RELEASE"
sentry-cli sourcemaps inject ./dist
sentry-cli sourcemaps upload --release "$RELEASE" ./dist
sentry-cli releases set-commits "$RELEASE" --auto
sentry-cli releases finalize "$RELEASE"
sentry-cli deploys new -r "$RELEASE" -e production
```
5. **Verify symbolication**: trigger a known throw on the deployed app; confirm the event in Sentry shows original file/line and that `Debug ID` matches.
6. **Configure ownership** via `.sentry/codeowners` (Sentry-format):
```
# path-based
path:apps/web/checkout/** #payments-team
path:apps/api/billing/** #payments-team @alice
url:https://example.com/admin/* #platform-team
```
7. **Tune alerts** with intent. Use Issue Alerts for *new/regressed* events, Metric Alerts for *rates*:
- **Issue Alert**: "A new issue is created in `production` AND event count > 10 in 1h" → Slack `#payments-oncall`.
- **Metric Alert**: "`failure_rate()` of `transaction.op:http.server` > 2% over 5 min" → PagerDuty.
- Always set **resolution thresholds** so alerts auto-close.
8. **Cron monitoring** (replace dead-man switches):
```ts
await Sentry.withMonitor("nightly-billing", async () => {
await runNightlyBilling();
}, { schedule: { type: "crontab", value: "0 3 * * *" }, checkinMargin: 5, maxRuntime: 30 });
```From SwapnilPopat/ai-assistant-skills, MIT.
More from SwapnilPopat/ai-assistant-skills
- 0.497score
fitness-function-design
SwapnilPopat
Design executable architectural fitness functions per quality attribute.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
cloudflare-deploy
SwapnilPopat
Deploy Cloudflare Workers, Pages, and Workers-with-static-assets safely using Wrangler 4.x with versioned uploads, gradual deployments, preview/production…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
netlify-deploy
SwapnilPopat
Deploy static sites, framework apps (Next.js, Astro, Remix, SvelteKit, Nuxt), Edge Functions, and serverless Functions to Netlify with deploy previews, branch…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
openai-transcribe
SwapnilPopat
Transcribe audio with OpenAI speech-to-text models (gpt-4o-transcribe, gpt-4o-mini-transcribe, whisper-1) using prompt-guided terminology, segment-level…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
render-deploy
SwapnilPopat
Deploy Web Services, Private Services, Background Workers, Cron Jobs, Static Sites, PostgreSQL, and Key-Value (Redis-compatible) on Render via Blueprints…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
architect-review
SwapnilPopat
Conduct a rigorous architecture review covering scope, drivers, quality attributes, risks, decisions, and action items.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
architecture-anti-patterns
SwapnilPopat
Detect and remediate architecture anti-patterns - Big Ball of Mud, Distributed Monolith, Golden Hammer, Vendor Lock-in, Premature Microservices, Lava Flow…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
dependency-governance
SwapnilPopat
Govern third-party and OSS dependencies via SBOM, SLSA, OpenSSF Scorecard, and license policy.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
anthropic-claude
SwapnilPopat
Build production integrations with Anthropic Claude (Claude 4.5 Sonnet, Claude Opus 4, Claude Haiku 4) via the Messages API — system prompts, multi-turn…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
architecture-patterns-catalog
SwapnilPopat
Select the right macro-architecture pattern by mapping drivers (scale, change rate, team topology, NFRs) to a curated 2026 catalog covering layered…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
architecture-review-facilitation
SwapnilPopat
Facilitate effective architecture reviews using ATAM-lite, structured agendas, decision logs, and clear action items.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
interview-prep
SwapnilPopat
Prepare for system-design interviews using a repeatable framework - requirements clarification, capacity estimation, API and data design, deep dives, and…
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 1, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from SwapnilPopat
- 0.497score
anthropic-claude
SwapnilPopat
Build production integrations with Anthropic Claude (Claude 4.5 Sonnet, Claude Opus 4, Claude Haiku 4) via the Messages API — system prompts, multi-turn…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
cloudflare-deploy
SwapnilPopat
Deploy Cloudflare Workers, Pages, and Workers-with-static-assets safely using Wrangler 4.x with versioned uploads, gradual deployments, preview/production…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
netlify-deploy
SwapnilPopat
Deploy static sites, framework apps (Next.js, Astro, Remix, SvelteKit, Nuxt), Edge Functions, and serverless Functions to Netlify with deploy previews, branch…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
openai-transcribe
SwapnilPopat
Transcribe audio with OpenAI speech-to-text models (gpt-4o-transcribe, gpt-4o-mini-transcribe, whisper-1) using prompt-guided terminology, segment-level…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
render-deploy
SwapnilPopat
Deploy Web Services, Private Services, Background Workers, Cron Jobs, Static Sites, PostgreSQL, and Key-Value (Redis-compatible) on Render via Blueprints…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
architect-review
SwapnilPopat
Conduct a rigorous architecture review covering scope, drivers, quality attributes, risks, decisions, and action items.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
sentry-observability skill. Agent Mart. https://agentmart.dev/skills/swapnilpopat-sentry-observability (last updated 2026-10-24)