Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/platforms/javascript/common/ai-agent-monitoring/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,33 @@ Sentry.init({
</SplitSection>
</SplitLayout>

<SplitLayout>
<SplitSection>
<SplitSectionText>

### 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


Enable this option if `gen_ai` spans are being dropped because the transaction payload exceeds size limits.

</SplitSectionText>
<SplitSectionCode>

```javascript
import * as Sentry from "___SDK_PACKAGE___";

Sentry.init({
dsn: "___PUBLIC_DSN___",
tracesSampleRate: 1.0,
streamGenAiSpans: true,
});
```

</SplitSectionCode>
</SplitSection>
</SplitLayout>

## Tracking Conversations

<Alert level="info">
Expand Down
Loading