Skip to content

feat(server-utils): Record TypeSafe and LangChain Jev calls as gen_ai.decide spans - #25270

Merged
andreiborza merged 2 commits into
developfrom
ab/typesafe-langchain-decide-spans
Oct 12, 2026
Merged

andreiborza merged 2 commits into
developfrom
ab/typesafe-langchain-decide-spans

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

Jev calls from the TypeSafe and LangChain integrations now create decide <model> spans with op gen_ai.decide, instead of gen_ai.evaluate.

Why

gen_ai.evaluate is deprecated in favor of gen_ai.decide (getsentry/sentry-conventions#696), to match the Vercel AI rename to experimental_decide.

Closes: #25249

….decide spans

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andreiborza
andreiborza marked this pull request as ready for review October 12, 2026 11:37
@andreiborza
andreiborza requested a review from a team as a code owner October 12, 2026 11:37
@andreiborza
andreiborza requested review from RulaKhaled, isaacs, mydea and nicohrubec and removed request for a team, isaacs and mydea October 12, 2026 11:37

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit db16762. Configure here.

Comment thread dev-packages/node-integration-tests/suites/tracing/typesafe/test.ts Outdated
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.82 kB - -
@sentry/browser - with treeshaking flags 27.95 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.86 kB - -
@sentry/browser (incl. Tracing) 51.88 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 51.9 kB - -
@sentry/browser (incl. Tracing, Profiling) 54.83 kB - -
@sentry/browser (incl. Tracing, Replay) 91.63 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.49 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 96.34 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 109.32 kB - -
@sentry/browser (incl. Feedback) 47.34 kB - -
@sentry/browser (incl. sendFeedback) 34.87 kB - -
@sentry/browser (incl. FeedbackAsync) 39.98 kB - -
@sentry/browser (incl. Metrics) 30.84 kB - -
@sentry/browser (incl. Logs) 31.13 kB - -
@sentry/browser (incl. Metrics & Logs) 31.77 kB - -
@sentry/react 31.65 kB - -
@sentry/react (incl. Tracing) 54.21 kB - -
@sentry/vue 37.89 kB - -
@sentry/vue (incl. Tracing) 54.81 kB - -
@sentry/svelte 29.84 kB - -
@sentry/remix (Remix 3 client bundle) 56.91 kB - -
CDN Bundle 31.55 kB - -
CDN Bundle (incl. Tracing) 52.41 kB - -
CDN Bundle (incl. Logs, Metrics) 33.75 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 54.34 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.67 kB - -
CDN Bundle (incl. Tracing, Replay) 90.06 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.23 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.18 kB - -
CDN Bundle - uncompressed 92.91 kB - -
CDN Bundle (incl. Tracing) - uncompressed 155.53 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.45 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 161.48 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.48 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 275.7 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 281.63 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 289.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 295.33 kB - -
@sentry/nextjs (client) 56.62 kB - -
@sentry/sveltekit (client) 52.27 kB - -
@sentry/core/server 40.91 kB - -
@sentry/core/browser 13.74 kB - -
@sentry/node 151.81 kB +0.01% +12 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.77 kB - -
@sentry/node - without tracing 94.37 kB +0.01% +9 B 🔺
@sentry/node - without channel injection 129.99 kB +0.02% +13 B 🔺
@sentry/aws-serverless 102.53 kB +0.01% +4 B 🔺
@sentry/cloudflare (withSentry) - minified 210.21 kB - -
@sentry/cloudflare (withSentry) 521.16 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 227.88 kB - -

View base workflow run

@nicohrubec nicohrubec left a comment

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.

nice, just the one bugbot flag

@andreiborza
andreiborza merged commit 6aa337a into develop Oct 12, 2026
544 of 546 checks passed
@andreiborza
andreiborza deleted the ab/typesafe-langchain-decide-spans branch October 12, 2026 12:12
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.

Rename TypeSafe and LangChain Jev spans from evaluate to decide

2 participants