Repository navigation
feat(server-utils): Record TypeSafe and LangChain Jev calls as gen_ai.decide spans - #25270
Merged
Merged
Conversation
….decide spans Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andreiborza
marked this pull request as ready for review
October 12, 2026 11:37
andreiborza
requested review from
RulaKhaled,
isaacs,
mydea and
nicohrubec
and removed request for
a team,
isaacs and
mydea
October 12, 2026 11:37
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
Contributor
size-limit report 📦
|
nicohrubec
approved these changes
Oct 12, 2026
nicohrubec
left a comment
Member
There was a problem hiding this comment.
nice, just the one bugbot flag
47 tasks done
1 of 6 tasks
andreiborza
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Oct 14, 2026
## DESCRIBE YOUR PR Follows [sentry-javascript 11.7.0](https://github.com/getsentry/sentry-javascript/releases/tag/11.7.0) ([#25270](getsentry/sentry-javascript#25270), [#25272](getsentry/sentry-javascript#25272), [#25274](getsentry/sentry-javascript#25274), [#25281](getsentry/sentry-javascript#25281)). In that release, Vercel AI, TypeSafe, LangChain/LangGraph, Workers AI, and Mastra classifier spans changed from `gen_ai.evaluate` / `evaluate <model>` to `gen_ai.decide` / `decide <model>`. - Vercel AI: documents `experimental_decide()` (Sentry SDK `11.7.0`+, AI SDK `7.0.128`+) instead of `experimental_evaluate()`. The "Trace Jev Evaluations" section is now "Trace Jev Decisions" (anchor `#trace-jev-decisions`), and it links to the AI SDK's new [Decisions](https://ai-sdk.dev/docs/ai-sdk-core/decisions) page. - TypeSafe, LangChain, LangGraph, Workers AI, and Mastra (the classifier page and the span-type table) now give the span op and name as `gen_ai.decide` and `decide <model>`. - To keep things simple, every decide-span section uses `11.7.0` as its minimum SDK version (`AvailableSince`, requirement lines, and Mastra's supported versions), and the pages don't describe older SDK behavior. - Links that pointed to the old Vercel AI anchor or to `experimental_evaluate()` are updated. #19938 already updated the manual instrumentation and shared span-attribute docs. The LangChain/Mastra "Classifier Evaluations" headings stay as they are, because those are the frameworks' own terms. ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [x] No deadline: Not urgent, can wait up to 1 week+ ## PRE-MERGE CHECKLIST - [ ] 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](https://github.com/orgs/getsentry/teams/docs) <!-- junior-request-attribution:start --> via **Andrei Borza**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0BKK9QLCUA%3A1791990645.267039 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BKK9QLCUA%3A1791990645.267039) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BKK9QLCUA%3A1791990645.267039/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Andrei Borza <andrei.borza@sentry.io>
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.

What
Jev calls from the TypeSafe and LangChain integrations now create
decide <model>spans with opgen_ai.decide, instead ofgen_ai.evaluate.Why
gen_ai.evaluateis deprecated in favor ofgen_ai.decide(getsentry/sentry-conventions#696), to match the Vercel AI rename toexperimental_decide.Closes: #25249