Skip to content

docs(js/cf): Fix Agent Tracing and Vercel AI Cloudflare setup - #18859

Merged
vgrozdanic merged 2 commits into
masterfrom
docs/js-cf-agent-tracing-p0
Jul 29, 2026
Merged

docs(js/cf): Fix Agent Tracing and Vercel AI Cloudflare setup#18859
vgrozdanic merged 2 commits into
masterfrom
docs/js-cf-agent-tracing-p0

Conversation

@vgrozdanic

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Cloudflare readers following Agent Tracing or Vercel AI docs were steered at Sentry.init (not a public @sentry/cloudflare API) and at integration snippets that either wouldn't parse or implied Node-style auto-instrumentation.

Agent Tracing on Cloudflare now bootstraps with withSentry (and points Durable Objects / Agents at instrumentDurableObjectWithSentry), keeps dataCollection: {} with a short permissive-defaults warning, and uses a plain-language hub blurb so readers pick the right stack page instead of assuming OpenAI-style auto setup. Vercel AI Cloudflare samples register vercelAIIntegration on withSentry, keep Deno/init and Node paths separate, include dataCollection: {} on enable samples, and preserve the default entrypoint vs nodejs_compat record* distinction plus per-call experimental_telemetry.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • 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

Cloudflare docs were showing Sentry.init and invalid JS for Agent Tracing and
Vercel AI. Use withSentry options, plain CF instrumentation guidance, and
dataCollection on enable samples so copy-paste and privacy defaults match the
SDK.

Co-Authored-By: opencode <noreply@opencode.ai>
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Jul 29, 2026 12:12pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Jul 29, 2026 12:12pm

Request Review

@vgrozdanic
vgrozdanic marked this pull request as ready for review July 29, 2026 10:33
@vgrozdanic
vgrozdanic requested a review from a team July 29, 2026 10:34
Comment thread docs/platforms/javascript/common/agent-tracing/index.mdx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1300062c47

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/platforms/javascript/common/configuration/integrations/vercelai.mdx Outdated
…s_compat

Keep dataCollection: {} for Agent Tracing / Conversations, warn that empty
config is permissive beyond genAI, and point the primary CF Vercel AI setup at
the nodejs_compat entrypoint required for AI SDK v7.

Co-Authored-By: opencode <noreply@opencode.ai>
Comment thread docs/platforms/javascript/common/agent-tracing/index.mdx
@vgrozdanic
vgrozdanic merged commit 0443894 into master Jul 29, 2026
22 checks passed
@vgrozdanic
vgrozdanic deleted the docs/js-cf-agent-tracing-p0 branch July 29, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants