getsentry / getsentry/sentry-python
Set `gen_ai.tool.call.id` on execute_tool spans and in message formatting
オープン
Improvement
Python
Spans
- 主要言語
- Python
- スター
- 2.2k
- フォーク
- 669
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 213
説明
Extract `tool_call_id` from pydantic-ai's `ToolCallPart` and set it in two places:
1. On `gen_ai.execute_tool` spans in `sentry_sdk/integrations/pydantic_ai/spans/execute_tool.py`
2. In chat message serialization (tool call messages) in `sentry_sdk/integrations/pydantic_ai/spans/ai_client.py`
This helps correlate tool calls with their returns in multi-tool scenarios. The attribute is recommended by OTel.
コントリビューションガイド
評価
この issue はまだ評価されていません。