getsentry / getsentry/sentry-python
Set `gen_ai.response.id` on `gen_ai.chat` spans
未关闭
Improvement
Python
Spans
- 主要语言
- Python
- 星标
- 2.2k
- 派生
- 669
- 平均合并
- 1 天 40 分钟
- 30 天内合并 PR
- 212
描述
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`.
贡献指南
评估
这个 Issue 还没有评估数据。