Title: Instrument TypeSafe Jev (`@typesafe-ai/sdk`) · Issue #24693 · getsentry/sentry-javascript · GitHub
Open Graph Title: Instrument TypeSafe Jev (`@typesafe-ai/sdk`) · Issue #24693 · getsentry/sentry-javascript
X Title: Instrument TypeSafe Jev (`@typesafe-ai/sdk`) · Issue #24693 · getsentry/sentry-javascript
Description: TypeSafe's official SDK (@typesafe-ai/sdk, latest 0.6.0) calls the Jev evaluation model with TypeSafeClient.systemOne({ state, questions, model? }). Users who call Jev directly (not through Vercel AI experimental_evaluate, see #24692) ge...
Open Graph Description: TypeSafe's official SDK (@typesafe-ai/sdk, latest 0.6.0) calls the Jev evaluation model with TypeSafeClient.systemOne({ state, questions, model? }). Users who call Jev directly (not through Vercel ...
X Description: TypeSafe's official SDK (@typesafe-ai/sdk, latest 0.6.0) calls the Jev evaluation model with TypeSafeClient.systemOne({ state, questions, model? }). Users who call Jev directly (not through Ver...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/24693
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Instrument TypeSafe Jev (`@typesafe-ai/sdk`)","articleBody":"TypeSafe's official SDK (`@typesafe-ai/sdk`, latest `0.6.0`) calls the Jev evaluation model with `TypeSafeClient.systemOne({ state, questions, model? })`. Users who call Jev directly (not through Vercel AI `experimental_evaluate`, see getsentry/sentry-javascript#24692) get no span today, only a plain `http.client` span from `fetch`.\n\n## Scope\n\n* Add a new AI integration in `packages/server-utils/`: logic in `src/ai/typesafe/`, integration in `src/integrations/typesafe.ts`, registered in `getTracingIntegrations()`. Re-export it from the runtime packages.\n* Instrument `TypeSafeClient.prototype.systemOne`. Make one span for each call, not one span for each retry.\n* `models.list()` is out of scope.\n\n## Target span\n\nUse the same shape as the Vercel AI evaluate span in getsentry/sentry-javascript#24692, so that both paths look the same in the product.\n\n* Name: `evaluate \u003cmodel>`, op `gen_ai.evaluate`, origin `auto.ai.typesafe`\n* `gen_ai.operation.name: evaluate`, `gen_ai.provider.name: typesafe`\n* `gen_ai.request.model` (the `model` option, or the client default, `jev-latest`), `gen_ai.response.model` (`result.model`, for example `jev-1.13.0`)\n* `gen_ai.usage.input_tokens`, `output_tokens`, `total_tokens` (from `result.usage.input_tokens` / `output_tokens`)\n* `gen_ai.input.messages: [{ type: 'evaluation', state, questions }]` (only when `recordInputs` is on)\n* `gen_ai.output.messages: [{ type: 'evaluation', answers }]` (only when `recordOutputs` is on)\n* Set the span status to `error` when the call throws (`TypeSafeError` and API errors).\n\n## Notes\n\n* The SDK sends requests with `fetch` to `POST /v1/systemone`. It has no tracing channel, so we must patch the client.\n* `@sentry/conventions` has no `gen_ai.evaluate` op yet (same gap as getsentry/sentry-javascript#24692).\n* Add a node-integration test with a mocked TypeSafe API server.","author":{"url":"https://github.com/andreiborza","@type":"Person","name":"andreiborza"},"datePublished":"2026-09-24T11:47:24Z","url":"https://github.com/getsentry/sentry-javascript/issues/24693"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:887d209a-cc5f-14c6-7ddb-63bbd4d24d9b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91E8:2A6197:43A1DC:5E6B9F:6B044192 |
| html-safe-nonce | 19c77afad946868ebea48979b89647850b4408775846166bd4eb354c530f638c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUU4OjJBNjE5Nzo0M0ExREM6NUU2QjlGOjZCMDQ0MTkyIiwidmlzaXRvcl9pZCI6Ijg4Nzc4MjU2MjQ1ODEwOTU4MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4b4b863c41fe302769176f740a8c21734c6165a8adbc0670408fdd341da132ae |
| hovercard-subject-tag | issue:5567811938 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/24693/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e433a30999eca9709274ab7ce37ec258156a3e5567488d9d88de41817202332/getsentry/sentry-javascript/issues/24693 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e433a30999eca9709274ab7ce37ec258156a3e5567488d9d88de41817202332/getsentry/sentry-javascript/issues/24693 |
| og:image:alt | TypeSafe's official SDK (@typesafe-ai/sdk, latest 0.6.0) calls the Jev evaluation model with TypeSafeClient.systemOne({ state, questions, model? }). Users who call Jev directly (not through Vercel ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreiborza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width