getsentry / getsentry/sentry-javascript
Replace deprecated `gen_ai.prompt` with `gen_ai.input.messages`
- Ngôn ngữ chính
- TypeScript
- Star
- 8.7k
- Fork
- 1.8k
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 515
Mô tả
`@sentry/conventions` deprecates `gen_ai.prompt` in favor of `gen_ai.input.messages`. `gen_ai.prompt` holds a raw prompt string (legacy Anthropic Completions API); `gen_ai.input.messages` expects a stringified array of structured message objects (`[{role, parts: [{type, content}]}]`).
Entails wrapping the legacy prompt into the new structured message format and emitting it under the new attribute. Affects the Anthropic AI integration.
We can likely postpone this until after the major, if we do it at all, since there are still discussions about handling this in Relay.
References:
* [`gen_ai.prompt`]()
* [`gen_ai.input.messages`]()
Hướng dẫn đóng góp
Hướng nghiên cứu
Start in the Anthropic AI integration and review the linked gen_ai.prompt and gen_ai.input.messages convention references. Confirm how the legacy raw prompt is currently emitted, then verify that the structured message attribute contains the wrapped prompt and that the deprecated attribute is no longer emitted. Relay handling and the major-release timing remain open questions in the issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- backend
- Loại issue
- Tái cấu trúc
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100