Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/ai/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ keywords:
className="w-full md:w-[calc(50%-12px)]"
/>
<LinkCard
href="/ai/observability/"
href="/product/agents/"
iconSrc="/ai/img/IconStats.svg"
title="AI Observability"
title="Agents"
description="Add Sentry monitoring and debugging to your AI agents and MCP servers. Track LLM calls, token usage, and tool executions."
className="w-full md:w-[calc(50%-12px)]"
/>
Expand Down
34 changes: 0 additions & 34 deletions docs/ai/observability/agents/index.mdx

This file was deleted.

39 changes: 0 additions & 39 deletions docs/ai/observability/index.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/guides/custom-spans.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ fun processEmailDigest(job: Job) {

### 5. AI/LLM Operations

For AI workloads, use [Sentry Agent Tracing](/ai/observability/agents/) instead of manual instrumentation when possible. It automatically captures agent workflows, tool calls, and token usage.
For AI workloads, use [Sentry Agent Tracing](/product/agents/) instead of manual instrumentation when possible. It automatically captures agent workflows, tool calls, and token usage.

If you're not using a supported framework or need custom attributes:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_order: 500
description: "Learn how to instrument your code to use Sentry's AI Agents module with Microsoft.Extensions.AI."
---

With <Link to="/ai/observability/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your AI systems with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data will be fully connected to your other Sentry data like logs, errors, and traces.
With <Link to="/product/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your AI systems with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data will be fully connected to your other Sentry data like logs, errors, and traces.

As a prerequisite to setting up Agent Tracing with .NET, you'll need to first <PlatformLink to="/tracing/">set up tracing</PlatformLink>. Once this is done, you can use the `Sentry.Extensions.AI` package to automatically instrument AI agents created with `Microsoft.Extensions.AI`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ notSupported:
- javascript.capacitor
---

With <Link to="/ai/observability/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your AI systems with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data will be fully connected to your other Sentry data like logs, errors, and traces.
With <Link to="/product/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your AI systems with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data will be fully connected to your other Sentry data like logs, errors, and traces.

## Prerequisites

Expand Down
8 changes: 4 additions & 4 deletions docs/platforms/javascript/common/agent-tracing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ supported:
- javascript.nitro
---

With <Link to="/ai/observability/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your AI systems with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data will be fully connected to your other Sentry data like logs, errors, and traces.
With <Link to="/product/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your AI systems with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data will be fully connected to your other Sentry data like logs, errors, and traces.

<AgentSetupCallout skill="sentry-setup-ai-monitoring" />

Expand Down Expand Up @@ -120,7 +120,7 @@ Sentry.init({

### Streaming Gen AI Spans

`gen_ai` spans are sent as standalone envelope items instead of being bundled in the transaction by default (since SDK version `10.61.0`). This prevents AI spans with large inputs and outputs from hitting transaction payload size limits and being dropped, and is required for <Link to="/ai/observability/conversations/">Conversations</Link> to work.
`gen_ai` spans are sent as standalone envelope items instead of being bundled in the transaction by default (since SDK version `10.61.0`). This prevents AI spans with large inputs and outputs from hitting transaction payload size limits and being dropped, and is required for <Link to="/product/agents/conversations/">Conversations</Link> to work.

To send `gen_ai` spans as part of the transaction instead, set `streamGenAiSpans` to `false`. Self-hosted Sentry users should set this to `false`, as standalone `gen_ai` spans may not be ingested by their Sentry instance.

Expand Down Expand Up @@ -192,7 +192,7 @@ Sentry.setConversationId(null);

## Identifying Users in Conversations

The [Conversations](/ai/observability/conversations/) view includes a **User** column. To populate it, call `setUser` once per request or session, before any AI calls:
The [Conversations](/product/agents/conversations/) view includes a **User** column. To populate it, call `setUser` once per request or session, before any AI calls:

```javascript
import * as Sentry from "___SDK_PACKAGE___";
Expand Down Expand Up @@ -297,7 +297,7 @@ await Sentry.startSpan(

<Alert>

For a complete guide on naming agents across all supported frameworks, see [Naming Your Agents](/ai/observability/agents/naming/).
For a complete guide on naming agents across all supported frameworks, see [Naming Your Agents](/product/agents/naming/).

</Alert>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ supported:
- javascript.tanstackstart-react
---

With Sentry's [MCP monitoring](/ai/observability/mcp/), you can track and debug MCP servers with full-stack context. You'll be able to monitor tool executions, prompt retrievals, resource access, and error rates. MCP monitoring data will be fully connected to your other Sentry data like logs, errors, and traces.
With Sentry's [MCP monitoring](/product/agents/mcp/), you can track and debug MCP servers with full-stack context. You'll be able to monitor tool executions, prompt retrievals, resource access, and error rates. MCP monitoring data will be fully connected to your other Sentry data like logs, errors, and traces.

As a prerequisite to setting up MCP monitoring with JavaScript, you'll need to first <PlatformLink to="/tracing/">set up tracing</PlatformLink>. Once this is done, the JavaScript SDK will automatically instrument MCP servers created with supported libraries. If that doesn't fit your use case, you can use custom instrumentation described below.

## Automatic Instrumentation

The JavaScript SDK supports automatic instrumentation for MCP servers. We recommend adding the MCP integration to your Sentry configuration to automatically capture spans for MCP operations.

- [MCP (Model Context Protocol)](/ai/observability/mcp/getting-started/)
- [MCP (Model Context Protocol)](/product/agents/mcp/getting-started/)

## Manual Instrumentation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can browse the full list of available models in the [Cloudflare Workers AI m
behavior may change.
</Alert>

The Workers AI instrumentation does **not** infer the conversation ID automatically. To group multi-turn AI calls into a single <Link to="/ai/monitoring/conversations/">Conversation</Link>, set it manually with <PlatformLink to="/configuration/apis/#setConversationId">`Sentry.setConversationId()`</PlatformLink>. The ID is applied as the `gen_ai.conversation.id` attribute to all AI spans within the current scope. See <PlatformLink to="/ai-agent-monitoring/#tracking-conversations">Tracking Conversations</PlatformLink> for details.
The Workers AI instrumentation does **not** infer the conversation ID automatically. To group multi-turn AI calls into a single <Link to="/product/agents/conversations/">Conversation</Link>, set it manually with <PlatformLink to="/configuration/apis/#setConversationId">`Sentry.setConversationId()`</PlatformLink>. The ID is applied as the `gen_ai.conversation.id` attribute to all AI spans within the current scope. See <PlatformLink to="/ai-agent-monitoring/#tracking-conversations">Tracking Conversations</PlatformLink> for details.

When you use the [Cloudflare Agents SDK](https://developers.cloudflare.com/agents/), each agent instance already has a stable identifier, its Durable Object instance name (`this.name`), which is a natural conversation ID.

Expand Down Expand Up @@ -114,4 +114,4 @@ export const MyChatAgent = Sentry.instrumentDurableObjectWithSentry(

To unset the conversation ID, pass `null` to `Sentry.setConversationId()`.

Grouped AI calls show up in the <Link to="/ai/monitoring/conversations/">Conversations</Link> view, where you can inspect token usage, latency, and errors across an entire conversation.
Grouped AI calls show up in the <Link to="/product/agents/conversations/">Conversations</Link> view, where you can inspect token usage, latency, and errors across an entire conversation.
2 changes: 1 addition & 1 deletion docs/platforms/php/guides/laravel/agent-tracing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This feature is currently in Beta. Beta features are still in progress and may h

</Alert>

With <Link to="/ai/observability/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your Laravel AI agents with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data is connected to your other Sentry data like logs, errors, and traces.
With <Link to="/product/agents/dashboards/">Sentry Agent Tracing</Link>, you can monitor and debug your Laravel AI agents with full-stack context. You'll be able to track key insights like token usage, latency, tool usage, and error rates. Agent Tracing data is connected to your other Sentry data like logs, errors, and traces.

<AgentSetupCallout skill="sentry-setup-ai-monitoring" platformName="PHP" />

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/python/integrations/anthropic/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This integration connects Sentry with the [Anthropic Python SDK](https://github.

Once you've installed this SDK, you can use the Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests.

Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/ai/observability/agents).
Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/product/agents).

## Install

Expand Down Expand Up @@ -54,7 +54,7 @@ def my_llm_stuff():

After running this script, the resulting data should show up in the `AI Spans` tab on the `Explore > Traces > Trace` page on Sentry.io.

If you manually created an <PlatformLink to="/tracing/instrumentation/custom-instrumentation/ai-agents-module/#invoke-agent-span">Invoke Agent Span</PlatformLink> (not done in the example above) the data will also show up in the [AI Agents Dashboard](/ai/observability/agents).
If you manually created an <PlatformLink to="/tracing/instrumentation/custom-instrumentation/ai-agents-module/#invoke-agent-span">Invoke Agent Span</PlatformLink> (not done in the example above) the data will also show up in the [AI Agents Dashboard](/product/agents).

It may take a couple of moments for the data to appear in [sentry.io](https://sentry.io).

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/python/integrations/google-genai/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This integration connects Sentry with the [Google Gen AI Python SDK](https://git

Once you've installed this SDK, you can use the Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests.

Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/ai/observability/agents).
Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/product/agents).

## Install

Expand Down Expand Up @@ -67,7 +67,7 @@ def my_llm_stuff():

After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces"` page on Sentry.io.

If you manually created an <PlatformLink to="/tracing/instrumentation/custom-instrumentation/ai-agents-module/#invoke-agent-span">Invoke Agent Span</PlatformLink> (not done in the example above) the data will also show up in the [AI Agents Dashboard](/ai/observability/agents).
If you manually created an <PlatformLink to="/tracing/instrumentation/custom-instrumentation/ai-agents-module/#invoke-agent-span">Invoke Agent Span</PlatformLink> (not done in the example above) the data will also show up in the [AI Agents Dashboard](/product/agents).

It may take a couple of moments for the data to appear in [sentry.io](https://sentry.io).

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/python/integrations/huggingface_hub/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Learn about using Sentry for Hugging Face Hub."

This integration connects Sentry with [Hugging Face Hub](https://github.com/huggingface/huggingface_hub) in Python.

Once you've installed this SDK, you can use Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests. Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/ai/observability/agents).
Once you've installed this SDK, you can use Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests. Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/product/agents).

## Install

Expand Down Expand Up @@ -87,7 +87,7 @@ if __name__ == "__main__":
```


After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces"` page on Sentry.io, and in the [AI Agents Dashboard](/ai/observability/agents).
After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces"` page on Sentry.io, and in the [AI Agents Dashboard](/product/agents).

It may take a couple of moments for the data to appear in [sentry.io](https://sentry.io).

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/python/integrations/langchain/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Learn about using Sentry for LangChain."

This integration connects Sentry with [LangChain](https://github.com/langchain-ai/langchain) in Python.

Once you've installed this SDK, you can use Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests. Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/ai/observability/agents).
Once you've installed this SDK, you can use Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests. Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/product/agents).

## Install

Expand Down Expand Up @@ -149,7 +149,7 @@ with sentry_sdk.start_transaction(name="langchain-anthropic"):
print(result)
```

After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces"` page on Sentry.io, and in the [AI Agents Dashboard](/ai/observability/agents).
After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces"` page on Sentry.io, and in the [AI Agents Dashboard](/product/agents).

It may take a couple of moments for the data to appear in [sentry.io](https://sentry.io).

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/python/integrations/langgraph/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Learn about using Sentry for LangGraph."

This integration connects Sentry with [LangGraph](https://github.com/langchain-ai/langgraph) in Python.

Once you've installed this SDK, you can use Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests. Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/ai/observability/agents).
Once you've installed this SDK, you can use Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests. Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [AI Agents Dashboard](/product/agents).

## Install

Expand Down Expand Up @@ -82,7 +82,7 @@ with sentry_sdk.start_transaction(name="langgraph-openai"):
print(result)
```

After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces"` page on Sentry.io, and in the [AI Agents Dashboard](/ai/observability/agents).
After running this script, the resulting data should show up in the `"AI Spans"` tab on the `"Explore" > "Traces"` page on Sentry.io, and in the [AI Agents Dashboard](/product/agents).

It may take a couple of moments for the data to appear in [sentry.io](https://sentry.io).

Expand Down
Loading
Loading