Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

init: agent tracing setup does not track conversations or users

Abierto
#1,658 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
node.js, typescript

Línea de trabajo

Start from where sentry init decides to add Sentry.vercelAIIntegration() to the generated server config when agent tracing is selected, and how the wizard inspects the installed @sentry/* SDK version (it must skip the line for SDK >= 11). Then find the code that emits chat/thread request handlers and the success output text; done means those handlers (or at minimum the success output) wire Sentry.setConversationId() and Sentry.setUser() per the Tracking Conversations docs, and the redundant integration is omitted on modern SDKs.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary

When agent tracing is selected for an app that uses the Vercel AI SDK, sentry init adds Sentry.vercelAIIntegration() but does not set a conversation ID or the user. AI spans arrive, but every chat turn is its own row in Agent Tracing → Conversations, with no user attached.

The platform docs cover this under Tracking Conversations: call Sentry.setConversationId() with a stable ID and Sentry.setUser() on each request that makes AI calls.

Observed (getsentry/sentry-devex#91, @sentry/nextjs 11.x, ai 7)

  • vercelAIIntegration() added to the server config. On JavaScript SDK 11 this integration is already enabled automatically on Node when tracing is on, so the line is redundant.
  • No setConversationId / setUser in either chat route.

Suggested

When agent tracing is selected and the app has request handlers that call an AI library:

  • set the conversation ID and user in those handlers (the app's own chat/thread ID and the authenticated user), or at minimum point to the Tracking Conversations section in the success output;
  • skip vercelAIIntegration() on SDK ≥ 11 server runtimes, where it is a default.

For comparison, the sentry-for-ai sentry-instrument skill now wires both calls when AI monitoring is requested (getsentry/sentry-for-ai#361).

Created with Claude Code

Lenguaje dominante
TypeScript
Estrellas
124
Forks
14
Merge medio
21 h 48 min
PR fusionados (30 d)
64

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/cli

Todos los issues de getsentry/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.