Repository navigation
feat(attributes): Add experimental gen_ai.extract operation - #728
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Names
Other
Bug Fixes 🐛
Documentation 📚
Internal Changes 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
andreiborza
marked this pull request as ready for review
October 21, 2026 12:15
andreiborza
requested review from
a team,
Lms24,
alexander-alderman-webb,
cleptric,
giortzisg,
mjq and
nsdeschenes
as code owners
October 21, 2026 12:15
andreiborza
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Oct 22, 2026
… spans (#25624) ## What Workers AI calls to Cloudflare Clairic (`@cf/cloudflare/clairic`) now create `extract <model>` spans with op `gen_ai.extract`, instead of `chat` spans without messages. - Records the request and response bodies as input and output messages, with images replaced by `[Blob substitute]` - Records the response model and token usage - Adds unit tests and a Cloudflare integration test ## Why Clairic is a typed field extraction model, and the new extraction span spec (getsentry/sentry-conventions#728) covers it. The op is a local constant until the conventions release. Ref #25615 --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
obostjancic
approved these changes
Oct 22, 2026
Lms24
approved these changes
Oct 23, 2026
4 tasks done
nicohrubec
pushed a commit
to getsentry/sentry-javascript
that referenced
this pull request
Oct 27, 2026
…#25734) Follow-up to #25624. The `gen_ai.extract` op shipped in `@sentry/conventions` 0.28.0 (getsentry/sentry-conventions#728), and the repo already depends on 0.29.0, so the local `GEN_AI_EXTRACT_OP` placeholder is replaced with the `GEN_AI_EXTRACT` export from `@sentry/conventions/op`. No dependency bump or behavior change. Ref #25615 <!-- junior-request-attribution:start --> via **Jan Peer Stöcklmair**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0CA6TD3QRK%3A1792966562.069879 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CA6TD3QRK%3A1792966562.069879) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CA6TD3QRK%3A1792966562.069879/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jan VamPeer Stöcklmair <jan.peer@sentry.io>
This branch was successfully deployed
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
Adds a
gen_ai.extractop andextractoperation name for typed field extraction models, such as Cloudflare's Clairic. The messages record the extraction request and response as the provider sent them.For the input/output message structure see getsentry/sentry-docs#20107.
Why
Extraction models return typed values from a state, and this does not fit chat or decide spans.