Skip to content
getsentry avatar

Sentry Setup Ai Monitoring

Set up Sentry AI monitoring by detecting installed AI SDKs and configuring matching integrations with sampling checks.

CCM score
72 of 100
skills.sh installs
3.1K
GitHub stars
283
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers LLM call, agent, tool, and token tracking across OpenAI, Anthropic, Vercel AI, LangChain, Google GenAI, Pydantic AI, and Laravel AI
  • Detects installed SDKs via package.json, requirements.txt, pyproject.toml, and composer.json before writing any configuration
  • Requires tracing enabled and gates prompt and output capture behind explicit user confirmation due to PII risk
  • Designed for teams instrumenting LLM usage in Node.js, Python, Laravel, or Cloudflare Workers projects

Install

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

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

Files

All Skills > Feature Setup > AI Monitoring

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).

If the app has multi-turn chats, set a conversation ID by default anywhere it makes sense to identify a chat session. Sentry uses gen_ai.conversation.id to group related AI spans into Conversations. Some integrations infer it automatically, but many setups need to set it explicitly.

Data Capture Warning

Details

Repository
github.com/getsentry/sentry-for-ai
Categories
AI Agents & LLM Apps, Debugging
First seen
Apr 16, 2026

More from getsentry/sentry-for-ai

All 27

Similar to Sentry Setup Ai Monitoring

More AI Agents & LLM Apps