init: agent tracing setup does not track conversations or users
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 124
- Fork
- 14
- Merge trung bình
- 21 giờ 48 phút
- Pull request đã merge (30 ngày)
- 64
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Evaluate Twinkleplop for terminal code highlightingCó thể đã có người làm @MathurAditya724 đã nhận 17 ngày trước. Đang mởjared
getsentry/cli#1633 · 1 bình luận · 2 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Evaluate Twinkleplop for local UI JSON highlightingCó thể đã có người làm @MathurAditya724 đã nhận 17 ngày trước. Đang mởjared
getsentry/cli#1632 · 1 bình luận · 2 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
cline/mcp-marketplace#2932 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
lingdojo/kana-dojo#32188 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Portkey-AI/gateway#1844 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
rjsf-team/react-jsonschema-form#5495 ·
Maintainer thường phản hồi trong vòng 2 ngày