
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-codeInstalls 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- Sentry Nextjs Sdk665
- Sentry Pr Code Review637
- Sentry Create Alert596
- Sentry React Sdk586
- Sentry React Native Sdk549
- Sentry Sdk Skill Creator422
- Sentry Python Sdk384
- Sentry Cocoa Sdk334
- Sentry Go Sdk321
- Sentry Svelte Sdk319
- Sentry Ruby Sdk311
- Sentry Otel Exporter Setup304
- Sentry Dotnet Sdk303
- Sentry Setup Logging289
- Sentry Setup Tracing253
- Sentry Setup Metrics209
- Sentry React Native Setup150
- Sentry Fix Issues2.6K
- Sentry React Setup1.1K