Set `gen_ai.response.id` on `gen_ai.chat` spans
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 85/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- python
调研方向
从 sentry_sdk/integrations/pydantic_ai/spans/ai_client.py 中的 update_ai_client_span() 开始,然后检查 pydantic-ai 的 ModelResponse 以及 consts.py 中的 SPANDATA.GEN_AI_RESPONSE_ID。确认 response_id 是从 response 中提取的,并且已完成的 gen_ai.chat spans 会暴露 gen_ai.response.id,以便与 provider dashboards 和 logs 进行关联。
由索引模型根据 Issue 内容生成。
描述
Extract response_id from pydantic-ai's ModelResponse and set it as gen_ai.response.id in update_ai_client_span() in sentry_sdk/integrations/pydantic_ai/spans/ai_client.py.
This is a recommended OTel attribute, useful for correlating spans with provider dashboards/logs. We already have SPANDATA.GEN_AI_RESPONSE_ID defined in consts.py.
- 主要语言
- Python
- 星标
- 2.2k
- 派生
- 672
- 平均合并
- 1 天 13 分钟
- 30 天内合并 PR
- 212
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-python 的其他 Issue
-
Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-python#7543 · 1 条评论 ·
-
Python
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-python#6992 · 1 条评论 ·
-
Improvement Python
难度 2/5 1-3 小时 新手友好度 65/100
getsentry/sentry-python#6970 · 1 条评论 ·
-
Bug Python
难度 2/5 1-3 小时 新手友好度 74/100
getsentry/sentry-python#6504 · 1 条评论 ·
-
Improvement Python Spans
难度 1/5 1 小时以内 新手友好度 84/100
getsentry/sentry-python#5832 · 1 条评论 ·
查看 getsentry/sentry-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100