Sentry Setup AI Monitoring
getsentry/sentry-for-ai
Setup Sentry AI Agent Monitoring in any project. An agent skill from getsentry/sentry-for-ai.
Setup Sentry AI Agent Monitoring in any project. An agent skill from LiorVainer/data-israel.
$ npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LiorVainer/data-israel sentry-setup-ai-monitoring --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sentry-setup-ai-monitoring .claude/skills/sentry-setup-ai-monitoring && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sentry-setup-ai-monitoring" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/sentry-setup-ai-monitoring into .claude/skills/sentry-setup-ai-monitoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-setup-ai-monitoring", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/sentry-setup-ai-monitoringType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LiorVainer/data-israel sentry-setup-ai-monitoring --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/sentry-setup-ai-monitoring .agents/skills/sentry-setup-ai-monitoring && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sentry-setup-ai-monitoring" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/sentry-setup-ai-monitoring into .agents/skills/sentry-setup-ai-monitoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-setup-ai-monitoring", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LiorVainer/data-israel sentry-setup-ai-monitoring --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/sentry-setup-ai-monitoring .cursor/skills/sentry-setup-ai-monitoring && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sentry-setup-ai-monitoring" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/sentry-setup-ai-monitoring into .cursor/skills/sentry-setup-ai-monitoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-setup-ai-monitoring", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LiorVainer/data-israel.git --path .agents/skills/sentry-setup-ai-monitoring--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LiorVainer/data-israel sentry-setup-ai-monitoring --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/sentry-setup-ai-monitoring .gemini/skills/sentry-setup-ai-monitoring && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sentry-setup-ai-monitoring" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/sentry-setup-ai-monitoring into .gemini/skills/sentry-setup-ai-monitoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-setup-ai-monitoring", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LiorVainer/data-israel sentry-setup-ai-monitoringInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/sentry-setup-ai-monitoring .github/skills/sentry-setup-ai-monitoring && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sentry-setup-ai-monitoring" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/sentry-setup-ai-monitoring into .github/skills/sentry-setup-ai-monitoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-setup-ai-monitoring", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LiorVainer/data-israel sentry-setup-ai-monitoring --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LiorVainer/data-israel.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/sentry-setup-ai-monitoring .opencode/skills/sentry-setup-ai-monitoring && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sentry-setup-ai-monitoring" agent skill from https://github.com/LiorVainer/data-israel/tree/main/.agents/skills/sentry-setup-ai-monitoring into .opencode/skills/sentry-setup-ai-monitoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-setup-ai-monitoring", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sentry-setup-ai-monitoringSetup Sentry AI Agent Monitoring in any project. An agent skill from LiorVainer/data-israel.
Sentry Setup AI Monitoring is an agent skill from LiorVainer/data-israel. Setup Sentry AI Agent Monitoring in any project. Use when asked to monitor LLM calls, track AI agents, or instrument OpenAI/Anthropic/Vercel AI/LangChain/Google GenAI/Pydantic AI. Detects installed AI SDKs and configures appropriate integrations.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Building AI agents. It works with Sentry, LangChain, OpenAI and Vercel. The repository describes itself as: AI agent network that connects to Israeli open data sources - ask questions in Hebrew, get answers grounded in real data with charts and sources. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 6522504. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript, bash and python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
docs.sentry.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sentry Setup AI Monitoring loads about 1.8k tokens when it runs. Until then it costs about 68 tokens; SKILL.md has 489 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LiorVainer/data-israel at commit 6522504, republished under its Apache-2.0 licence (© LiorVainer). 489 words, ~1,819 tokens.
.claude/skills/sentry-setup-ai-monitoring/SKILL.md (or your agent's skills folder).Configure Sentry to track LLM calls, agent executions, tool usage, and token consumption.
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.
AI monitoring requires tracing enabled (tracesSampleRate > 0).
Prompt and output recording captures user content that is likely PII. Before enabling recordInputs/recordOutputs (JS) or include_prompts/send_default_pii (Python), confirm:
Ask the user whether they want prompt/output capture enabled. Do not enable it by default — configure it only when explicitly requested or confirmed. Use tracesSampleRate: 1.0 only in development; in production, use a lower value or a tracesSampler function.
Always detect installed AI SDKs before configuring:
# JavaScript
grep -E '"(openai|@anthropic-ai/sdk|ai|@langchain|@google/genai)"' package.json
# Python
grep -E '(openai|anthropic|langchain|huggingface)' requirements.txt pyproject.toml 2>/dev/null| Package | Integration | Min Sentry SDK | Auto? |
|---|---|---|---|
openai | openAIIntegration() | 10.28.0 | Yes |
@anthropic-ai/sdk | anthropicAIIntegration() | 10.28.0 | Yes |
ai (Vercel) | vercelAIIntegration() | 10.6.0 | Yes* |
@langchain/* | langChainIntegration() | 10.28.0 | Yes |
@langchain/langgraph | langGraphIntegration() | 10.28.0 | Yes |
@google/genai | googleGenAIIntegration() | 10.28.0 | Yes |
*Vercel AI: 10.6.0+ for Node.js, Cloudflare Workers, Vercel Edge Functions, Bun. 10.12.0+ for Deno. Requires experimental_telemetry per-call.
Integrations auto-enable when the AI package is installed — no explicit registration needed:
| Package | Auto? | Notes |
|---|---|---|
openai | Yes | Includes OpenAI Agents SDK |
anthropic | Yes | |
langchain / langgraph | Yes | |
huggingface_hub | Yes | |
google-genai | Yes | |
pydantic-ai | Yes | |
litellm | No | Requires explicit integration |
mcp (Model Context Protocol) | Yes |
Just ensure tracing is enabled. Integrations auto-enable when the AI package is installed:
Sentry.init({
dsn: "YOUR_DSN",
tracesSampleRate: 1.0, // Lower in production (e.g., 0.1)
// OpenAI, Anthropic, Google GenAI, LangChain integrations auto-enable in Node.js
});To customize (e.g., enable prompt capture — see Data Capture Warning):
integrations: [
Sentry.openAIIntegration({
// recordInputs: true, // Opt-in: captures prompt content (PII)
// recordOutputs: true, // Opt-in: captures response content (PII)
}),
],In browser-side code or Next.js meta-framework apps, auto-instrumentation is not available. Wrap the client manually:
import OpenAI from "openai";
import * as Sentry from "@sentry/nextjs"; // or @sentry/react, @sentry/browser
const openai = Sentry.instrumentOpenAiClient(new OpenAI());
// Use 'openai' client as normalintegrations: [
Sentry.langChainIntegration({
// recordInputs: true, // Opt-in: captures prompt content (PII)
// recordOutputs: true, // Opt-in: captures response content (PII)
}),
Sentry.langGraphIntegration({
// recordInputs: true,
// recordOutputs: true,
}),
],Add to sentry.edge.config.ts for Edge runtime:
integrations: [Sentry.vercelAIIntegration()],Enable telemetry per-call:
await generateText({
model: openai("gpt-4o"),
prompt: "Hello",
experimental_telemetry: {
isEnabled: true,
// recordInputs: true, // Opt-in: captures prompt content (PII)
// recordOutputs: true, // Opt-in: captures response content (PII)
},
});Integrations auto-enable — just init with tracing. Only add explicit imports to customize options:
import sentry_sdk
sentry_sdk.init(
dsn="YOUR_DSN",
traces_sample_rate=1.0, # Lower in production (e.g., 0.1)
# send_default_pii=True, # Opt-in: required for prompt capture (sends user PII)
# Integrations auto-enable when the AI package is installed.
# Only specify explicitly to customize (e.g., include_prompts):
# integrations=[OpenAIIntegration(include_prompts=True)],
)Use when no supported SDK is detected.
op Value | Purpose |
|---|---|
gen_ai.request | Individual LLM calls |
gen_ai.invoke_agent | Agent execution lifecycle |
gen_ai.execute_tool | Tool/function calls |
gen_ai.handoff | Agent-to-agent transitions |
await Sentry.startSpan({
op: "gen_ai.request",
name: "LLM request gpt-4o",
attributes: { "gen_ai.request.model": "gpt-4o" },
}, async (span) => {
span.setAttribute("gen_ai.request.messages", JSON.stringify(messages));
const result = await llmClient.complete(prompt);
span.setAttribute("gen_ai.usage.input_tokens", result.inputTokens);
span.setAttribute("gen_ai.usage.output_tokens", result.outputTokens);
return result;
});| Attribute | Description |
|---|---|
gen_ai.request.model | Model identifier |
gen_ai.request.messages | JSON input messages |
gen_ai.usage.input_tokens | Input token count |
gen_ai.usage.output_tokens | Output token count |
gen_ai.agent.name | Agent identifier |
gen_ai.tool.name | Tool identifier |
Enable prompt/output capture only after confirming with the user (see Data Capture Warning above).
After configuring, make an LLM call and check the Sentry Traces dashboard. AI spans appear with gen_ai.* operations showing model, token counts, and latency.
| Issue | Solution |
|---|---|
| AI spans not appearing | Verify tracesSampleRate > 0, check SDK version |
| Token counts missing | Some providers don't return tokens for streaming |
| Prompts not captured | Enable recordInputs/include_prompts |
| Vercel AI not working | Add experimental_telemetry to each call |
© LiorVainer, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/sentry-setup-ai-monitoring of LiorVainer/data-israel.
Open the folder on GitHubat commit 6522504
Sentry Setup AI Monitoring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sentry Setup AI Monitoring this skillLiorVainer/data-israel | 130 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Sentry Setup AI Monitoringgetsentry/sentry-for-ai | 268 | — | ~5.5k | Automated safety check: Notes | Apache-2.0 | |
| Sentry Instrumentgetsentry/sentry-for-ai | 268 | — | ~3.2k | Automated safety check: Pass | Apache-2.0 | |
| Add Example AgentGetBindu/Bindu | 10k | — | ~1.1k | Automated safety check: Notes | Custom licence | |
| Failproof AI SDK IntegrationFailproofAI/failproofai | 5.3k | — | ~6k | Automated safety check: Pass | Custom licence | |
| Upgrade Stripekanchengw/cnllm | 173 | 3 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 |
getsentry/sentry-for-ai
Setup Sentry AI Agent Monitoring in any project. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Instrument an application with Sentry — detect the platform, install and initialize the SDK if needed, and wire up any signal — error monitoring, tracing/performance, logging, metrics, profiling…
GetBindu/Bindu
Add a new self-contained example agent under examples/. An agent skill from GetBindu/Bindu.
FailproofAI/failproofai
Helps instrument a custom Python or TypeScript agent to record events for Failproof AI, verify what gets written, and run an evaluator worker that scores the runs.
kanchengw/cnllm
Guide for upgrading Stripe API versions and SDKs. An agent skill from kanchengw/cnllm.
pydantic/pydantic-ai
Migrates Python LangChain Deep Agents applications to Pydantic AI and Pydantic AI Harness while preserving the application's observed behavior.
LiorVainer/data-israel
Comprehensive Mastra framework guide. An agent skill from LiorVainer/data-israel.
LiorVainer/data-israel
Access and compare Israeli supermarket prices using mandatory Price Transparency Law data feeds.
LiorVainer/data-israel
This skill should be used when the user asks to 'add to backlog', 'create a backlog item', 'show backlog', 'list backlog tasks', 'what's in the backlog', 'move to backlog', 'check backlog', 'backlog…
LiorVainer/data-israel
This skill should be used when the user asks about 'GovMap layers', 'GovMap API', 'map layers', 'entitiesByPoint', 'layer metadata', 'govmap endpoints', 'what layers are available', 'query map data…
LiorVainer/data-israel
This skill should be used when the user asks to 'add a data source', 'create a new data source', 'add a new API', 'integrate a new data provider', 'add new tools', or mentions adding Israeli…
Categories
Setup Sentry AI Agent Monitoring in any project. An agent skill from LiorVainer/data-israel. Sentry Setup AI Monitoring is an agent skill from LiorVainer/data-israel. Setup Sentry AI Agent Monitoring in any project.
Sentry Setup AI Monitoring fits situations like: asked to monitor LLM calls; track AI agents; instrument OpenAI/Anthropic/Vercel AI/LangChain/Google GenAI/Pydantic AI.
Run `npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a claude-code`. Or copy the skill folder (.agents/skills/sentry-setup-ai-monitoring in LiorVainer/data-israel) into .claude/skills/sentry-setup-ai-monitoring in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a codex`. Or copy the skill folder (.agents/skills/sentry-setup-ai-monitoring in LiorVainer/data-israel) into .agents/skills/sentry-setup-ai-monitoring in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LiorVainer/data-israel --skill sentry-setup-ai-monitoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sentry-setup-ai-monitoring, .gemini/skills/sentry-setup-ai-monitoring, .github/skills/sentry-setup-ai-monitoring and .opencode/skills/sentry-setup-ai-monitoring in your project.
SKILL.md names no scripts, command-line tools or credentials: Sentry Setup AI Monitoring is instructions for the agent only. Our summary lists: Python 3; Node.js.
SKILL.md names 1 domain. As links in the text: docs.sentry.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sentry Setup AI Monitoring is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sentry Setup AI Monitoring: Sentry Setup AI Monitoring (getsentry/sentry-for-ai, 268 stars), Sentry Instrument (getsentry/sentry-for-ai, 268 stars), Add Example Agent (GetBindu/Bindu, 10k stars) and Failproof AI SDK Integration (FailproofAI/failproofai, 5.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LiorVainer (a GitHub user) maintains it in LiorVainer/data-israel, which has 130 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on May 13, 2026.
Source: LiorVainer/data-israel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.