Dashboard › sentry › Session 0ZbAGnn6DcpV
0ZbAGnn6DcpVKlaLXResearch Sentry's AI/LLM monitoring capabilities. Fetch these URLs and summarize what's available:
I need to understand:
Also fetch: https://github.com/getsentry/sentry-javascript/tree/develop/packages/core/src/integrations to see if there's an AI integration module.
I'll fetch all four URLs in parallel to gather the information you need.
[tool results provided]
Let me fetch some additional pages to fill in the gaps — the AI-specific docs and the well-known span operations list.
[tool results provided]
Good, I found the AI monitoring docs path. Let me now fetch the actual AI agent monitoring getting-started guide and the semantic attributes source to get the exact attribute names.
[tool results provided]
Now let me get the Node.js-specific AI agent monitoring guide and the raw semantic attributes file to see all the gen_ai constants.
[tool results provided]
Here's a comprehensive summary of Sentry's AI/LLM monitoring capabilities for the JavaScript SDK.
Sentry has a full AI Agent Monitoring system built on top of its tracing infrastructure. It uses OpenTelemetry-aligned semantic conventions with the gen_ai.* attribute namespace. There is no special AI integration module in @sentry/core/src/integrations/ — instead, AI monitoring is done via:
Sentry.startSpan() with well-known gen_ai.* span ops and attributesop field)The ai category is a recognized span operation category. The specific well-known ops are:
| Span op | gen_ai.operation.name | Purpose |
|---|---|---|
| gen_ai.chat | "chat" | LLM chat completion request |
| gen_ai.invoke_agent | "invoke_agent" | Full agent execution lifecycle |
| gen_ai.execute_tool | "execute_tool" | Tool/function call execution |
| gen_ai.handoff | "handoff" | Agent-to-agent transition |
Other well-defined gen_ai.operation.name values: "embeddings", "generate_content", "text_completion", "create_agent".
── invoke_agent My Agent (gen_ai.invoke_agent)
├── chat gpt-4o (gen_ai.chat) ← 1st LLM call
├── execute_tool get_weather (gen_ai.execute_tool) ← tool run
├── chat gpt-4o (gen_ai.chat) ← 2nd LLM call
└── ...
Common (all AI spans):
| Attribute | Type | Required? |
|---|---|---|
| gen_ai.operation.name | string | required |
| gen_ai.provider.name | string | optional |
Chat/LLM request span (gen_ai.chat):
| Attribute | Type | Description |
|---|---|---|
| gen_ai.request.model | string | Requested model name (e.g. "o3-mini") |
| ...