-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
Description
Describe the bug
After upgrading pydantic-ai
from 0.8.1
to 1.0.x
, spans exported to Phoenix via openinference-instrumentation-pydantic-ai
become incomplete.
- With
pydantic-ai==0.8.1
+openinference-instrumentation-pydantic-ai==0.1.5
, spans look correct (instructions, user prompts, model info, tool calls, etc.). - With
pydantic-ai>=1.0.0
+ the same instrumentation, spans degrade:- Some attributes are missing (instructions, tool call details, etc.).
- Overall trace structure is much less informative compared to <1.0.0.
To Reproduce
pydantic-ai==1.0.10
openinference-instrumentation-pydantic-ai==0.1.5
arize-phoenix-otel==0.13.1
opentelemetry-sdk==1.37.0
self hosted phoenix v11.32.1
- Run Phoenix locally with self-hosted setup
- Connect Phoenix to a pydantic-ai Agent with OpenAIResponsesModel
- Add a tool to the agent
- Get agent response using
agent.run_stream()
- Verify the span in Phoenix UI
Expected behavior
with pydantic-ai >= 1.0.0
, spans should not degrade.
Screenshots
with pydantic v0.8.1
Desktop (please complete the following information):
- OS: Ubuntu
- Version 22.04
- Python 3.11.7
dosubot
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo