getsentry avatar

Sentry Setup Ai Monitoring

Automatically detects which AI SDKs you have installed (OpenAI, Anthropic, LangChain, Vercel AI, etc.) and wires up Sentry monitoring with the right integrations. Handles both JavaScript and Python, with auto-instrumentation for Node.js and manual wrapping instructions for browser contexts. The main value is that it knows the tricky bits: Vercel AI needs per-call telemetry flags, Python integrations auto-enable but need explicit config for prompt capture, and you need tracing turned on first or nothing works. It's also opinionated about the privacy implications of recording prompts and responses, which is the right call since that's user PII going straight into your observability stack. Good for when you need to debug token usage or track agent behavior without reading Sentry docs for an hour.

skills.sh installs
900
GitHub stars
25
last updated
Aug 21, 2026

Install

$ npx -y skills add getsentry/sentry-agent-skills --skill sentry-setup-ai-monitoring --agent claude-code

Installs into .claude/skills of the current project.

Files

Setup Sentry AI Agent Monitoring

Configure Sentry to track LLM calls, agent executions, tool usage, and token consumption.

Invoke This Skill When

  • User asks to "monitor AI/LLM calls" or "track OpenAI/Anthropic usage"
  • User wants "AI observability" or "agent monitoring"
  • User asks about token usage, model latency, or AI costs

Important: The SDK versions, API names, and code samples below are examples. Always verify against docs.sentry.io before implementing, as APIs and minimum versions may have changed.

Prerequisites

AI monitoring requires tracing enabled (tracesSampleRate > 0).

Data Capture Warning

Prompt and output recording captures user content that is likely PII. Before enabling recordInputs/recordOutputs (JS) or include_prompts/send_default_pii (Python), confirm:

  • The application's privacy policy permits capturing user prompts and model responses
  • Captured data complies with applicable regulations (GDPR, CCPA, etc.)
  • Sentry data retention settings are appropriate for the sensitivity of the data

Sponsors

Details

Repository
github.com/getsentry/sentry-agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Python, Cloud & Infrastructure
First seen
May 16, 2026

More from getsentry/sentry-agent-skills

All 20
1AgriciDaniel avatarads-monitorAgriciDaniel/claude-adsMonitor paid-ad account pacing, delivery, performance, creative fatigue, tracking, policy, and data quality across supported platforms. Use for daily or weekly 760skills.sh installs
2dalestudy avatargithub-actionsdalestudy/skillsGitHub Actions 워크플로우 생성, 보안 및 버전 관리 스킬. 다음 상황에서 사용: (1) 새 워크플로우 파일(.yml) 작성 시, (2) 기존 워크플로우 수정 시, (3) 액션 버전 검토 또는 업데이트 시, (4) CI/CD 보안 감사 시, (5) 'actions/', 'us743skills.sh installs
3miles990 avatardevops-cicdmiles990/claude-software-skillsCI/CD pipelines, infrastructure as code, and deployment strategies609skills.sh installs
4pluginagentmarketplace avatardocker-deploymentpluginagentmarketplace/custom-plugin-nodejsContainerize and deploy Node.js applications with Docker including multi-stage builds, Docker Compose, and production optimization525skills.sh installs
5aj-geddes avatarprometheus-monitoringaj-geddes/useful-ai-promptsSet up Prometheus monitoring for applications with custom metrics, scraping configurations, and service discovery. Use when implementing time-series metrics col516skills.sh installs
6bobmatnyc avatargolang-observability-opentelemetrybobmatnyc/claude-mpm-skillsInstrumenting Go applications with OpenTelemetry for distributed tracing, Prometheus for metrics, and structured logging with slog421skills.sh installs