Skip to content

[v6.0] reproduction: could not reproduce Instrumentation causing AINoOutputGeneratedError on aborts - #18246

Closed
ai-sdk-factory[bot] wants to merge 1 commit into
release-v6.0from
bug-reproduction-8676-20260731084145054029
Closed

[v6.0] reproduction: could not reproduce Instrumentation causing AINoOutputGeneratedError on aborts#18246
ai-sdk-factory[bot] wants to merge 1 commit into
release-v6.0from
bug-reproduction-8676-20260731084145054029

Conversation

@ai-sdk-factory

Copy link
Copy Markdown
Contributor

Bug

Instrumentation causing AI_NoOutputGeneratedError on aborts

Reproduction

  • Expected behavior is a regular instrumented stream abort without an AI_NoOutputGeneratedError or Sentry error event.
  • Reproduction artifacts examples/ai-functions/src/reproduction/issue-8676.ts and examples/ai-functions/src/reproduction/issue-8676-sentry-init.ts tested the checked-out ai@6.0.238 build with standard OpenTelemetry and Sentry's default VercelAI instrumentation using @sentry/node@10.53.1.
  • Standard OpenTelemetry produced an abort stream part, called onAbort once, did not call onError or onFinish, and produced no unhandled rejection.
  • Sentry instrumentation produced the same abort callbacks and an internal unhandled AbortError, but captured zero Sentry error events; the reported AI_NoOutputGeneratedError was not observed.
  • packages/ai/src/generate-text/stream-text.ts now rejects aborted result promises with the abort signal reason instead of NoOutputGeneratedError when no step completes.
  • Sentry fixed the reported monitoring impact by ignoring both AI SDK v5 AI_NoOutputGeneratedError and AI SDK v6 AbortError abort rejections; upgrading from the reported @sentry/node@10.12.0 to the tested 10.53.1 resolves the Sentry-visible error without AI SDK product changes.
  • The exact Azure Monitor configuration was not supplied; the equivalent active standard OpenTelemetry comparison did not exhibit the reported failure.
  • @sentry/node@10.53.1 was added to examples/ai-functions/package.json and pnpm-lock.yaml for the runnable comparison.

Relevant Documentation

Related Issues

Could not reproduce #8676

Co-authored-by: Lars Grammel <205036+lgrammel@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@ai-sdk-factory