Repository navigation
docs(agents): add extraction span manual instrumentation - #20427
Merged
ArthurKnaus merged 1 commit intoNov 4, 2026
Merged
ArthurKnaus merged 1 commit into
ArthurKnaus merged 1 commit into
Conversation
Document the gen_ai.extract span in the JavaScript and Python agent tracing manual instrumentation guides, following getsentry/sentry-conventions#728. Refs AGT-3212 Co-Authored-By: Arthur Knaus <7033940+ArthurKnaus@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
|
Getting ready to monitor this change · Rollout details
|
vgrozdanic
approved these changes
Nov 4, 2026
ArthurKnaus
deleted the
arthurknaus/agt-3212-manual-instrumentation-docs-for-extraction-spans
branch
November 4, 2026 16:04
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.
DESCRIBE YOUR PR
Documents the
gen_ai.extractspan in the agent tracing manual instrumentation guides, modeled on the existing Decision and Memory span sections. Follows sentry-conventions#728, which adds the experimentalgen_ai.extractop, theextractoperation name, and the extraction shapes forgen_ai.input.messages/gen_ai.output.messages.gen_ai.extractop,extract {model}name,gen_ai.operation.name: "extract", the request body withoutmodelas input messages, and the response body withoutmodelandusageas output messagesextraction-spanattributes include: required op/name/operation name, model, provider, and agent attributes, token usage, and the input format (state,fields,images,reference_date,options, plus field spec types) and output format (answers,truncated,span/spansoffsets)@sentry/cloudflare11.10.0Attribute values were checked against sentry-conventions (
model/op/gen_ai.json,gen_ai.operation.name,gen_ai.input.messages,gen_ai.output.messages), the JS Workers AI instrumentation (cloudflare.workers_aiprovider name), and the product's extraction parser (spans are recognized bygen_ai.operation.name).Open questions before ready for review
{type: "evaluation", ...}wrappers, which the current conventions examples and docs(develop): Document decision and extraction message structure #20107 drop. Out of scope here, but worth a follow-up.Refs AGT-3212
IS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST
via @ArthurKnaus.
--
View Session [Sentry]