Skip to content

docs(js): Add streamGenAiSpans option#17730

Merged
andreiborza merged 2 commits into
masterfrom
ab/stream-genai-spans
May 12, 2026
Merged

docs(js): Add streamGenAiSpans option#17730
andreiborza merged 2 commits into
masterfrom
ab/stream-genai-spans

Conversation

@andreiborza
Copy link
Copy Markdown
Member

@andreiborza andreiborza commented May 12, 2026

DESCRIBE YOUR PR

Documents the new streamGenAiSpans option for JavaScript AI Agent Monitoring (getsentry/sentry-javascript#20785).

Should not be merged before 10.53.0 exists.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

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

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • 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

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

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

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment May 12, 2026 8:06am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview May 12, 2026 8:06am

Request Review

@andreiborza andreiborza marked this pull request as draft May 12, 2026 07:33

### Streaming Gen AI Spans

AI spans with large inputs and outputs can hit transaction payload size limits. Set `streamGenAiSpans` to `true` to send `gen_ai` spans as standalone envelope items instead of bundling them in the transaction.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would put also the sentence you put in the changelog here to be a bit more explicit about what this means for customers:
Enable this option if gen_ai spans are being dropped because the transaction payload exceeds size limits.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added in e4f68c2

Copy link
Copy Markdown
Collaborator

@inventarSarah inventarSarah left a comment

Choose a reason for hiding this comment

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

lgtm👍

@andreiborza andreiborza marked this pull request as ready for review May 12, 2026 11:48
@andreiborza andreiborza merged commit a7e76c9 into master May 12, 2026
19 checks passed
@andreiborza andreiborza deleted the ab/stream-genai-spans branch May 12, 2026 11:54
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.

3 participants