Skip to content

fix: enable streamGenAiSpans for Conversations view (0.2.5)#15

Merged
Joshkop merged 1 commit into
mainfrom
fix/stream-genai-spans
May 20, 2026
Merged

fix: enable streamGenAiSpans for Conversations view (0.2.5)#15
Joshkop merged 1 commit into
mainfrom
fix/stream-genai-spans

Conversation

@Joshkop
Copy link
Copy Markdown
Owner

@Joshkop Joshkop commented May 20, 2026

Summary

The Sentry AI Agents → 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.

That option ships in @sentry/node 10.53.0+ (PR getsentry/sentry-javascript#20785). We were on 9.47.1.

Changes

  • Bumped @sentry/node from ^9.0.0^10.53.1 (root + scripts/).
  • Added streamGenAiSpans: true to Sentry.init in src/index.ts.
  • Version bumped to 0.2.5 in all three files per the release-version-files memory.

Rebased on top of pnpm-main (0.2.4) so lockfiles use pnpm.

Risk

  • Low. v9 → v10 changelog shows no public-API breaks that affect a manual-instrumentation pattern like ours. Removed v10 attributes were OpenAI-specific.
  • Local verification: 415/415 vitest tests pass under v10, pnpm run smoke passes, typecheck clean.

Test Plan

Automated (green locally; CI re-runs on push):

  • pnpm exec tsc --noEmit clean
  • 415/415 vitest tests pass under @sentry/node 10.53.1
  • pnpm run smoke PASSED

Manual (post-merge, live Sentry):

  • /plugin update → start a fresh Claude Code session → take a few turns
  • Open https://jobo-handel.sentry.io/explore/conversations/ → confirm conversations now appear (one row per gen_ai.conversation.id)
  • Confirm one conversation contains the turn, chat children, tool spans, and any subagent spans grouped together

🤖 Generated with Claude Code

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>
@Joshkop Joshkop force-pushed the fix/stream-genai-spans branch from 7f02eb5 to c368b17 Compare May 20, 2026 17:57
@Joshkop Joshkop changed the title fix: enable streamGenAiSpans for Conversations view (0.2.4) fix: enable streamGenAiSpans for Conversations view (0.2.5) May 20, 2026
@Joshkop Joshkop merged commit 9e26855 into main May 20, 2026
1 check passed
@Joshkop Joshkop deleted the fix/stream-genai-spans branch May 21, 2026 14:27
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.

1 participant