fix: enable streamGenAiSpans for Conversations view (0.2.5)#15
Merged
Conversation
5 tasks
The Conversations view stayed empty even after 0.2.2 added gen_ai.conversation.id to every span. Root cause: Sentry's Conversations data pipeline only ingests gen_ai.* spans when the SDK's streamGenAiSpans option is enabled, and that option was added in @sentry/node 10.53.0 (we were on 9.47.1). - Bump @sentry/node from ^9.0.0 to ^10.53.1 (root + scripts/). - Add streamGenAiSpans: true to Sentry.init. - Version bump to 0.2.5 in all three files per release-version-files memory. Rebased onto pnpm-based main (0.2.4 already shipped via #16). Verified: pnpm run ci passes (typecheck + 415/415 vitest + smoke). Ref: getsentry/sentry-javascript#20785 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
7f02eb5 to
c368b17
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Sentry AI Agents → Conversations view stayed empty even after 0.2.2 added
gen_ai.conversation.idto every span. Root cause:That option ships in
@sentry/node10.53.0+ (PR getsentry/sentry-javascript#20785). We were on 9.47.1.Changes
@sentry/nodefrom^9.0.0→^10.53.1(root +scripts/).streamGenAiSpans: truetoSentry.initinsrc/index.ts.Rebased on top of pnpm-main (0.2.4) so lockfiles use pnpm.
Risk
pnpm run smokepasses, typecheck clean.Test Plan
Automated (green locally; CI re-runs on push):
pnpm exec tsc --noEmitcleanpnpm run smokePASSEDManual (post-merge, live Sentry):
/plugin update→ start a fresh Claude Code session → take a few turnsgen_ai.conversation.id)🤖 Generated with Claude Code