You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(js): Fix Vercel AI integration 404 and simplify AI Agents docs (#14755)
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->
## DESCRIBE YOUR PR
- Fix /configuration/integrations/vercelai/ 404 and set supported sdks
- Simplify AI Agents manual instrumentation: example-first; specs in
Expandables; added OpenAI link.
- Update compatibility with Vercel AI SDK v5 (ai >=3 <6).
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] None: Not urgent, can wait up to 1 week+
## SLA
- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!
## PRE-MERGE CHECKLIST
*Make sure you've checked the following before merging your changes:*
- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)
## LEGAL BOILERPLATE
<!-- Sentry employees and contractors can delete or ignore this section.
-->
Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
## EXTRA RESOURCES
- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
---------
Co-authored-by: Michael Hoffmann <[email protected]>
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/tracing/instrumentation/ai-agents-module.mdx
+39-10Lines changed: 39 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,28 @@
2
2
title: Instrument AI Agents
3
3
sidebar_order: 500
4
4
description: "Learn how to manually instrument your code to use Sentry's Agents module."
5
+
supported:
6
+
- javascript.node
7
+
- javascript.aws-lambda
8
+
- javascript.azure-functions
9
+
- javascript.connect
10
+
- javascript.express
11
+
- javascript.fastify
12
+
- javascript.gcp-functions
13
+
- javascript.hapi
14
+
- javascript.hono
15
+
- javascript.koa
16
+
- javascript.nestjs
17
+
- javascript.bun
18
+
- javascript.deno
19
+
- javascript.nextjs
20
+
- javascript.nuxt
21
+
- javascript.astro
22
+
- javascript.solidstart
23
+
- javascript.sveltekit
24
+
- javascript.remix
25
+
- javascript.cloudflare
26
+
- javascript.tanstackstart-react
5
27
---
6
28
7
29
With <Linkto="/product/insights/ai/agents/dashboard/">Sentry AI Agent Monitoring</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. AI Agent Monitoring data will be fully connected to your other Sentry data like logs, errors, and traces.
@@ -12,9 +34,8 @@ As a prerequisite to setting up AI Agent Monitoring with JavaScript, you'll need
12
34
13
35
The JavaScript SDK supports automatic instrumentation for some AI libraries. We recommend adding their integrations to your Sentry configuration to automatically capture spans for AI agents.
Copy file name to clipboardExpand all lines: docs/product/insights/ai/agents/getting-started.mdx
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,7 @@ import * as Sentry from "@sentry/node";
125
125
// Sentry init needs to be above everything else
126
126
Sentry.init({
127
127
tracesSampleRate:1.0,
128
-
integrations: [
129
-
Sentry.vercelAIIntegration(),
130
-
],
128
+
integrations: [Sentry.vercelAIIntegration()],
131
129
});
132
130
133
131
import { generateText } from"ai";
@@ -152,7 +150,7 @@ async function aiAgent(userQuery) {
152
150
153
151
<Alerttitle="Don't see your SDK?">
154
152
155
-
We'll be adding AI agent integrations continuously. Please vote on [GitHub](https://github.com/getsentry/sentry-javascript/issues/16960) which one you'd like to see next. You can also instrument AI agents manually by following our [manual instrumentation guide](/platforms/javascript/tracing/instrumentation/ai-agents-module).
153
+
We'll be adding AI agent integrations continuously. Please vote on [GitHub](https://github.com/getsentry/sentry-javascript/issues/16960) which one you'd like to see next. You can also instrument AI agents manually by following our [manual instrumentation guide](/platforms/javascript/guides/node/tracing/instrumentation/ai-agents-module).
0 commit comments