From 97e8eca8399ac7b8f19c9c26a9c083294ac6c1c4 Mon Sep 17 00:00:00 2001 From: Simon Hellmayr Date: Wed, 5 Aug 2026 15:29:29 +0200 Subject: [PATCH] docs(js): Deduplicate Cloudflare agent tracing library list The Cloudflare instrumentation list named every library twice: once in a prose block describing its setup, then again as a bare link list. Merge them so each library appears once, as a link carrying its setup step. Agents SDK was in the link list with no setup guidance at all; it needs instrumentAgentWithSentry. The prose also grouped LangChain and LangGraph under "wrap your client", which fits neither: LangChain takes a callback handler, and LangGraph wraps the graph before .compile(). Co-Authored-By: Claude Opus 5 (1M context) --- .../javascript/common/agent-tracing/index.mdx | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/docs/platforms/javascript/common/agent-tracing/index.mdx b/docs/platforms/javascript/common/agent-tracing/index.mdx index c9e317fe0242ca..536a7728febd6b 100644 --- a/docs/platforms/javascript/common/agent-tracing/index.mdx +++ b/docs/platforms/javascript/common/agent-tracing/index.mdx @@ -83,20 +83,14 @@ Pick your AI stack. Some libraries auto-instrument; others need a short setup -On Cloudflare, setup differs by library—open the guide for your stack: - -- **Workers AI** — works automatically once Sentry wraps your worker. -- **Vercel AI** — turn the integration on in your Sentry options, then enable telemetry on each AI call (details on that page). -- **OpenAI, Anthropic, Google GenAI, LangChain, LangGraph** — not auto-instrumented here. Each guide shows how to wrap your client so AI spans show up. Tracing alone is not enough. - -- Workers AI -- Agents SDK -- Vercel AI -- OpenAI -- Anthropic -- Google Gen AI -- LangChain -- LangGraph +On Cloudflare, how much setup you need depends on the library. Enabling tracing alone is not enough for most of them. + +- Workers AI — works as soon as Sentry wraps your worker. Nothing else to do. +- Vercel AI — add the integration to your Sentry options, then enable telemetry on each AI call. +- Agents SDK — wrap your agent classes with `instrumentAgentWithSentry`. +- OpenAI, Anthropic, and Google Gen AI — wrap your client instance. +- LangChain — attach Sentry's callback handler. +- LangGraph — wrap your graph before you call `.compile()`.