Skip to content
Draft
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
11 changes: 6 additions & 5 deletions docs/platforms/javascript/common/agent-tracing/anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: "Adds instrumentation for the Anthropic SDK."
sidebar_order: 22
supported:
- javascript.node
- javascript.eve
- javascript.aws-lambda
- javascript.azure-functions
- javascript.connect
Expand Down Expand Up @@ -41,13 +42,13 @@ supported:
</Alert>
</PlatformSection>

<PlatformSection supported={["javascript.node", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>
<PlatformSection supported={["javascript.node", "javascript.eve", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>

## Automatic Instrumentation

_Import name: `Sentry.anthropicAIIntegration`_

<PlatformSection notSupported={["javascript.node", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<PlatformSection notSupported={["javascript.node", "javascript.eve", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<Alert>
If you are using a different runtime (like Bun, Cloudflare Workers or a Browser) or experiencing missing spans, you need to use **[Manual Instrumentation](#manual-instrumentation)** to explicitly wrap your AI client instance instead.
</Alert>
Expand All @@ -61,7 +62,7 @@ supported:

</PlatformSection>

<PlatformSection notSupported={["javascript.node", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<PlatformSection notSupported={["javascript.node", "javascript.eve", "javascript.connect", "javascript.hapi", "javascript.koa"]}>

## Manual Instrumentation

Expand Down Expand Up @@ -119,7 +120,7 @@ Defaults to `true` if `dataCollection.genAI.outputs` is `true` (which is the def

**Usage**

<PlatformSection supported={["javascript.node", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>
<PlatformSection supported={["javascript.node", "javascript.eve", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>

Using the `anthropicAIIntegration` integration for **automatic instrumentation**:

Expand All @@ -138,7 +139,7 @@ Defaults to `true` if `dataCollection.genAI.outputs` is `true` (which is the def

</PlatformSection>

<PlatformSection notSupported={["javascript.node", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<PlatformSection notSupported={["javascript.node", "javascript.eve", "javascript.connect", "javascript.hapi", "javascript.koa"]}>

Using the `instrumentAnthropicAiClient` wrapper for **manual instrumentation**:

Expand Down
106 changes: 0 additions & 106 deletions docs/platforms/javascript/common/agent-tracing/eve.mdx

This file was deleted.

7 changes: 4 additions & 3 deletions docs/platforms/javascript/common/agent-tracing/flue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sidebar_order: 28
description: "Learn how to send Flue agent traces, logs, and errors to Sentry."
supported:
- javascript.node
- javascript.eve
- javascript.cloudflare
---

Expand All @@ -16,7 +17,7 @@ With a valid `SENTRY_DSN`, Flue can send three connected signals to Sentry:
- **Logs**: With `enableLogs: true` in the generated Sentry SDK configuration, every `log.info`, `log.warn`, and `log.error` call from your tools and hooks appears as <PlatformLink to="/logs/">Sentry Logs</PlatformLink>. When tracing is enabled, Sentry correlates these logs with the trace.
- **Issues**: The generated bridge captures terminal failures, such as a failed prompt, skill, task, or shell operation, as Sentry error issues. Recovered tool errors remain diagnostic context on the trace when tracing is enabled and don't create issues.

<PlatformSection supported={["javascript.node"]}>
<PlatformSection supported={["javascript.node", "javascript.eve"]}>

<Alert>

Expand Down Expand Up @@ -53,7 +54,7 @@ The generated module reads its configuration from environment variables. Only `S
| `SENTRY_AI_RECORD_INPUTS` | `false` | Set to `true` to include prompts, system instructions, and tool definitions and arguments in spans. |
| `SENTRY_AI_RECORD_OUTPUTS` | `false` | Set to `true` to include model output, tool results, and exception messages and stacks in spans. |

<PlatformSection supported={["javascript.node"]}>
<PlatformSection supported={["javascript.node", "javascript.eve"]}>

```bash {filename:.env}
SENTRY_DSN="___PUBLIC_DSN___"
Expand Down Expand Up @@ -91,7 +92,7 @@ Review the data your agent handles before you enable these options in production

## How It Works

<PlatformSection supported={["javascript.node"]}>
<PlatformSection supported={["javascript.node", "javascript.eve"]}>

On Node.js, the generated `sentry.ts` calls `Sentry.init` at module scope. Sentry becomes the global OpenTelemetry tracer provider, so the spans from `@flue/opentelemetry` flow to Sentry without extra wiring. The following abridged example shows the core of the generated file. It omits helper definitions and the terminal-failure capture implementation, so use the file generated by the blueprint rather than copying this example:

Expand Down
11 changes: 6 additions & 5 deletions docs/platforms/javascript/common/agent-tracing/google-genai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: "Adds instrumentation for Google Gen AI SDK."
sidebar_order: 23
supported:
- javascript.node
- javascript.eve
- javascript.aws-lambda
- javascript.azure-functions
- javascript.connect
Expand Down Expand Up @@ -41,13 +42,13 @@ supported:
</Alert>
</PlatformSection>

<PlatformSection supported={["javascript.node", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>
<PlatformSection supported={["javascript.node", "javascript.eve", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>

## Automatic Instrumentation

_Import name: `Sentry.googleGenAIIntegration`_

<PlatformSection notSupported={["javascript.node", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<PlatformSection notSupported={["javascript.node", "javascript.eve", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<Alert>
If you are using a different runtime (like Bun, Cloudflare Workers or a Browser) or experiencing missing spans, you need to use **[Manual Instrumentation](#manual-instrumentation)** to explicitly wrap your AI client instance instead.
</Alert>
Expand All @@ -61,7 +62,7 @@ supported:

</PlatformSection>

<PlatformSection notSupported={["javascript.node", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<PlatformSection notSupported={["javascript.node", "javascript.eve", "javascript.connect", "javascript.hapi", "javascript.koa"]}>

## Manual Instrumentation

Expand Down Expand Up @@ -115,7 +116,7 @@ Defaults to `true` if `dataCollection.genAI.outputs` is `true` (which is the def

**Usage**

<PlatformSection supported={["javascript.node", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>
<PlatformSection supported={["javascript.node", "javascript.eve", "javascript.aws-lambda", "javascript.azure-functions", "javascript.connect", "javascript.express", "javascript.fastify", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nextjs", "javascript.nuxt", "javascript.solidstart", "javascript.sveltekit", "javascript.react-router", "javascript.remix", "javascript.astro", "javascript.tanstackstart-react", "javascript.electron", "javascript.cordova", "javascript.capacitor", "javascript.deno", "javascript.wasm"]}>

Using the `googleGenAIIntegration` integration for **automatic instrumentation**:

Expand All @@ -134,7 +135,7 @@ Sentry.init({

</PlatformSection>

<PlatformSection notSupported={["javascript.node", "javascript.connect", "javascript.hapi", "javascript.koa"]}>
<PlatformSection notSupported={["javascript.node", "javascript.eve", "javascript.connect", "javascript.hapi", "javascript.koa"]}>

Using the `instrumentGoogleGenAIClient` wrapper for **manual instrumentation**:

Expand Down
6 changes: 4 additions & 2 deletions docs/platforms/javascript/common/agent-tracing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ sidebar_section: features
new: true
supported:
- javascript
notSupported:
- javascript.eve
---

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 — and group multi-turn chats in <Link to="/product/agents/conversations/">Conversations</Link>. Agent Tracing data is fully connected to your other Sentry data like logs, errors, and traces.

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

<PlatformSection supported={["javascript.node", "javascript.aws-lambda", "javascript.azure-functions", "javascript.bun", "javascript.cloudflare", "javascript.connect", "javascript.deno", "javascript.effect", "javascript.electron", "javascript.elysia", "javascript.express", "javascript.fastify", "javascript.firebase", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nitro", "javascript.astro", "javascript.nextjs", "javascript.nuxt", "javascript.react-router", "javascript.remix", "javascript.solidstart", "javascript.sveltekit", "javascript.tanstackstart-react"]}>
<PlatformSection supported={["javascript.node", "javascript.eve", "javascript.aws-lambda", "javascript.azure-functions", "javascript.bun", "javascript.cloudflare", "javascript.connect", "javascript.deno", "javascript.effect", "javascript.electron", "javascript.elysia", "javascript.express", "javascript.fastify", "javascript.firebase", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nitro", "javascript.astro", "javascript.nextjs", "javascript.nuxt", "javascript.react-router", "javascript.remix", "javascript.solidstart", "javascript.sveltekit", "javascript.tanstackstart-react"]}>

## Getting Started

Expand Down Expand Up @@ -257,7 +259,7 @@ If you're building MCP (Model Context Protocol) servers, Sentry can also track t

</PlatformSection>

<PlatformSection notSupported={["javascript.node", "javascript.aws-lambda", "javascript.azure-functions", "javascript.bun", "javascript.cloudflare", "javascript.connect", "javascript.deno", "javascript.effect", "javascript.electron", "javascript.elysia", "javascript.express", "javascript.fastify", "javascript.firebase", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nitro", "javascript.astro", "javascript.nextjs", "javascript.nuxt", "javascript.react-router", "javascript.remix", "javascript.solidstart", "javascript.sveltekit", "javascript.tanstackstart-react"]}>
<PlatformSection notSupported={["javascript.node", "javascript.eve", "javascript.aws-lambda", "javascript.azure-functions", "javascript.bun", "javascript.cloudflare", "javascript.connect", "javascript.deno", "javascript.effect", "javascript.electron", "javascript.elysia", "javascript.express", "javascript.fastify", "javascript.firebase", "javascript.gcp-functions", "javascript.hapi", "javascript.hono", "javascript.koa", "javascript.nestjs", "javascript.nitro", "javascript.astro", "javascript.nextjs", "javascript.nuxt", "javascript.react-router", "javascript.remix", "javascript.solidstart", "javascript.sveltekit", "javascript.tanstackstart-react"]}>

## Prerequisites

Expand Down
Loading
Loading