Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

init: agent tracing setup does not track conversations or users

Đang mở
#1,658 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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 / 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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/cli

Tất cả issue của getsentry/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.