New advertisers: 50% off your first month with code FIRSTMONTHSee slots
getsentry avatar

Sentry Setup Ai Monitoring

Setup guide that configures Sentry AI monitoring by detecting installed LLM SDKs and their integrations.

skills.sh installs
904
GitHub stars
25
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers LLM call, agent, tool, and token tracking for JavaScript and Python projects with tracing enabled
  • Lists supported integrations for OpenAI, Anthropic, Vercel AI, LangChain, Google GenAI, and Pydantic AI, with minimum SDK versions
  • Requires explicit user confirmation before enabling prompt and output capture, since that data is likely PII
  • Designed for developers who want per-call token usage, model latency, and agent execution visibility in Sentry Traces

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/getsentry/sentry-agent-skills
Categories
AI Agents & LLM Apps, DevOps & Cloud
First seen
May 16, 2026

More from getsentry/sentry-agent-skills

All 8

Similar to Sentry Setup Ai Monitoring

More AI Agents & LLM Apps