Instrument TypeSafe Jev (`@typesafe-ai/sdk`)
Los mantenedores suelen responder en 1 día
@andreiborza ya está trabajando en esto.
Desde el 24/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
Scope
- Add a new AI integration in
packages/server-utils/: logic insrc/ai/typesafe/, integration insrc/integrations/typesafe.ts, registered ingetTracingIntegrations(). Re-export it from the runtime packages. - Instrument
TypeSafeClient.prototype.systemOne. Make one span for each call, not one span for each retry. models.list()is out of scope.
Target span
Use the same shape as the Vercel AI evaluate span in getsentry/sentry-javascript#24692, so that both paths look the same in the product.
- Name:
evaluate <model>, opgen_ai.evaluate, originauto.ai.typesafe gen_ai.operation.name: evaluate,gen_ai.provider.name: typesafegen_ai.request.model(themodeloption, or the client default,jev-latest),gen_ai.response.model(result.model, for examplejev-1.13.0)gen_ai.usage.input_tokens,output_tokens,total_tokens(fromresult.usage.input_tokens/output_tokens)gen_ai.input.messages: [{ type: 'evaluation', state, questions }](only whenrecordInputsis on)gen_ai.output.messages: [{ type: 'evaluation', answers }](only whenrecordOutputsis on)- Set the span status to
errorwhen the call throws (TypeSafeErrorand API errors).
Notes
- The SDK sends requests with
fetchtoPOST /v1/systemone. It has no tracing channel, so we must patch the client. @sentry/conventionshas nogen_ai.evaluateop yet (same gap as getsentry/sentry-javascript#24692).- Add a node-integration test with a mocked TypeSafe API server.
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.7k
- Forks
- 1.9k
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 543
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-javascript
-
Browser Bug Next.js Traces
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-javascript#24672 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-javascript#24200 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
javascript Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
getsentry/sentry-javascript#24134 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Cloudflare Workers javascript Tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-javascript#24051 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Bug Bun javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
getsentry/sentry-javascript#24045 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-javascript
Issues similares
-
docs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
remix-run/react-router#15558 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
solana-foundation/pay-kit#341 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
supabase/agent-skills#607 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día