Skip to content

docs(flue): Require the Sentry loader and Vite plugin for model call spans - #20313

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
docs/flue-require-loader
Draft

sentry-junior[bot] wants to merge 1 commit into
masterfrom
docs/flue-require-loader

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Companion to getsentry/sentry-javascript#25869, which moves Flue's gen_ai.chat spans to a new pi-ai integration. That integration needs Sentry's module hook or bundler plugin, so a Flue app that only calls instrument(Sentry.createFlueInstrumentation()) keeps agent and tool spans but has no model calls.

The Flue guides now treat the full setup as required instead of optional:

  • Node: starting the server with --import=@sentry/node/import is part of the setup, not an extra step for database and cache spans. A warning explains what goes missing without it, and the troubleshooting section covers the SDK's new "model calls are not being traced" warning.
  • Cloudflare: says the Vite plugin is required because it also instruments pi-ai, and adds the same troubleshooting entry.
  • What gets captured: chat spans now have the auto.ai.pi_ai origin, and flue.turn.purpose is removed.

Draft until #25869 is released. The captured-data changes only become accurate with that release. If the pi-ai integration ships after 11.0.0, the minimum SDK version in the prerequisites and supported versions should go up to match.

IS YOUR CHANGE URGENT?

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

via Francesco Gringl-Novy.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

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

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

Request Review

@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Oct 29, 2026
@mydea mydea self-assigned this Oct 29, 2026

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 12952b58 Deployed Oct 29, 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