Skip to content

docs(js): Fix Cloudflare AI integration snippets and duplicate agent setup links - #19841

Draft
sentry-junior[bot] wants to merge 2 commits into
masterfrom
docs/cloudflare-ai-integration-snippets
Draft

sentry-junior[bot] wants to merge 2 commits into
masterfrom
docs/cloudflare-ai-integration-snippets

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Cloudflare AI integration pages (OpenAI, Anthropic, Google Gen AI, LangChain, LangGraph, Together AI, Mistral, Vercel AI): Cloudflare readers no longer see the Sentry.init snippets. They see this instead:
    • Setup: add sentryCloudflareVitePlugin(), plus a fallback for when the plugin isn't used.
    • Options: an instrument.server.ts example using defineCloudflareOptions. Vercel AI sets recordInputs/recordOutputs on vercelAIIntegration(). The others use dataCollection.genAI.
    • The Import name: Sentry.xIntegration line is hidden for integrations Cloudflare doesn't export.
  • Agent Set Up page: Eve and Flue were each listed twice; the duplicates are removed.

Other platforms render the same as before.

Why

@sentry/cloudflare doesn't export init, and the only AI integration it exports is vercelAIIntegration (source). The Vite plugin turns on the AI integrations at build time.

via Ogi.

--

View Junior Session [Sentry]

…setup links

@sentry/cloudflare does not export init() or most AI integration factories,
so the shared AI integration pages showed Cloudflare users code that cannot
work. Show the Vite plugin setup and instrument.server.ts options on
Cloudflare instead, and drop the duplicate Eve and Flue entries on the agent
Set Up page.

Co-Authored-By: Ognjen Bostjancic <ognjen.bostjancic@sentry.io>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
develop-docs Ready Ready Preview Oct 8, 2026 9:09am UTC
sentry-docs Ready Ready Preview Oct 8, 2026 9:09am UTC

Request Review

@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Oct 7, 2026

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — 40a81496 Deployed Oct 8, 2026 by vercel[bot]
Preview – develop-docs — 40a81496 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Needs Triage The PR description is missing valid priority information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant