Repository navigation
docs(agent-tracing): document evaluation spans for JS and Python - #19825
Conversation
Add an Evaluation Span section to the JS and Python manual instrumentation pages covering gen_ai.evaluate spans (e.g. jev), plus a shared attributes include. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
| "gen_ai.response.model": result.model, // e.g. "typesafe/jev-1.13-20260917" | ||
| "gen_ai.output.messages": JSON.stringify([ | ||
| { | ||
| type: "evaluation", |
There was a problem hiding this comment.
Doesn't this conflict with the whole evaluate vs evaluation thing?
There was a problem hiding this comment.
yeah, it is a bit confusing...
getsentry/sentry-conventions#650 added the conventions
|
The plan checks the new heading on the changed pages. It also checks client errors on those pages and on the catch-all docs route. An issue escalates when page errors appear or catch-all errors rise above the measured band. Monitoring in Services: Mention PlanWhat changedThe JavaScript and Python manual instrumentation pages now teach evaluation spans. Those pages render a new Evaluation Span section with example code and attributes. This is live after sentry-docs deploys. RiskA broken Include or MDX block can fail those pages. Shared chrome such as code samples and expanders can throw on the catch-all route. JavaScript common content also ships to every JavaScript guide URL. Intended effectThis is a docs edit. There is no Sentry counter for the new heading. Confirmed means the live pages contain the heading Evaluation Span. Absent means that heading is missing while the pages still load.
Regression watchA bad MDX render can throw on the changed pages or in shared page chrome.
Page-specific pageload volume is too sparse to use as a watch. Sampled pageload and navigation on Not observablePython-only URL views were 0 in this window, so Python traffic cannot be split from JavaScript. HTTP status codes for these URLs were not queried. Traces are sampled at 30 percent, so page-view counts are not full traffic. |
|
Issue detected in Live docs omit the Evaluation Span heading after this ship The live Python and JavaScript pages load without the Evaluation Span heading. |
) ## DESCRIBE YOUR PR Documents evaluation (`gen_ai.evaluate`) spans in the agent tracing manual instrumentation guides, so users whose evaluation library isn't auto-instrumented can report these spans themselves. Follows the structure of the existing span sections on each page. - Add an "Evaluation Span" section to the JavaScript manual instrumentation page - Add the same section to the Python manual instrumentation page - Add a shared `evaluation-span` attributes include used by both pages - Cover the input (`state` + `questions`) and output (`answers`) shapes, the `boolean`/`noul`/`score`/`choice` answer types, and the two `criteria` shapes - Point users to the TypeSafe integrations and Vercel AI SDK's `experimental_evaluate()` for automatic instrumentation Closes TET-3057 Closes TET-3058 ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. Select exactly one option. For deadlines, replace `YYYY-MM-DD` with the due date. You can update this information later by editing the PR description. - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [x] No deadline: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've supplied a deadline. Thanks in advance for your help! ## PRE-MERGE CHECKLIST _Make sure you've checked the following before merging your changes:_ - [ ] 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) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
|
Verified in
|
DESCRIBE YOUR PR
Documents evaluation (
gen_ai.evaluate) spans in the agent tracing manual instrumentation guides, so users whose evaluation library isn't auto-instrumented can report these spans themselves. Follows the structure of the existing span sections on each page.evaluation-spanattributes include used by both pagesstate+questions) and output (answers) shapes, theboolean/noul/score/choiceanswer types, and the twocriteriashapesexperimental_evaluate()for automatic instrumentationCloses TET-3057
Closes TET-3058
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace
YYYY-MM-DDwith the due date. You can update this information later by editing the PR description.SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
🤖 Generated with Claude Code