init: agent tracing setup does not track conversations or users
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- node.js, typescript
- Bereich
- developer-experience
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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/setUserin 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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 124
- Forks
- 14
- Ø Merge
- 2 Std. 36 Min.
- Gemergte PRs (30 T.)
- 20
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/cli
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Simplify top-level help for human usersEvtl. vergeben @sentry-junior hat das vor 38 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
explore: canonical source for sortable dataset list (errors/discover)Evtl. wieder frei @BYK hat das vor 50 Tagen übernommen, und es ist kein Pull Request offen. Offenenhancement jared
getsentry/cli#1523 · 2 Reaktionen · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
issue list: counts are period-wide, not scoped to the release filter passed in --queryEvtl. vergeben @BYK hat das vor 49 Tagen übernommen. Offenjared
getsentry/cli#1518 · 2 Reaktionen · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
getsentry/cli#1382 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
area:agent-view area:tui bug platform:macos
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
anthropics/claude-code#104558 ·
Maintainer antworten meist innerhalb von 1 Tag
-
updater
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
UniversityOfHelsinkiCS/oodikone#5141 ·
-
maintanance
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
inmanta/web-console#7606 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug skills
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
equinor/fusion-framework#5846 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 74/100