getsentry / getsentry/sentry-javascript
Replace deprecated `gen_ai.prompt` with `gen_ai.input.messages`
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.8k
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 523
描述
`@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`]()
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- backend
- Issue 类型
- 重构
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100