openllmetry icon indicating copy to clipboard operation
openllmetry copied to clipboard

🚀 Feature: PydanticAI Framework

Open TheMellyBee opened this issue 9 months ago • 2 comments

Which component is this feature for?

All Packages

🔖 Feature description

Enable the PydanticAI framework for tracing. They have their own tracing called logfire using OTel, but I'm not seeing any support for Traceloop or Dyntrace (who uses Traceloop)

https://ai.pydantic.dev/

🎤 Why is this feature needed ?

We are investigating building our agentic framework over in PyDanticAI due to the typesafety and more agnostic LLM it brings over other frameworks. However, we need to have tracing we are used to. This would be a big win for our team if the Traceloop was willing to bring PydanticAI instrumentation.

✌️ How do you aim to achieve this?

I'd love to have the community bring in instrumentation for this.

🔄️ Additional Information

Now, I realize that it should still pick up the base calls to GenAI SDK and Pinecone, but it would be great to get the trace throughout.

👀 Have you spent some time to check if this feature request has been raised before?

  • [x] I checked and didn't find similar issue

Are you willing to submit PR?

None

TheMellyBee avatar Mar 17 '25 19:03 TheMellyBee

Hey @TheMellyBee - since pydantic ai is otel, it should just work. Have you experience any specific issues? Are you not seeing any traces? If so, can you elaborate, which platform are you using? Can you provide a snippet that reproduces the issue?

nirga avatar Mar 17 '25 19:03 nirga

Great! Let me test it more

TheMellyBee avatar Mar 18 '25 15:03 TheMellyBee