Pydantic AI/Logfire traces can include prompts, completions, tool call arguments, and full message history. Review Data Governance before enabling production traffic.
Install
Setup
gen_ai.input.messages, gen_ai.output.messages, gen_ai.tool.call.arguments, gen_ai.usage.*) plus pydantic_ai.all_messages. gen_ai.conversation.id is emitted natively when message history is provided to the agent.
Caveats
Do not setLOGFIRE_TOKEN: that re-enables the hosted backend.
Verify
Run oneagent.run_sync call, then open Raw logs in Agnost. Confirm gen_ai.* and pydantic_ai.* attributes are present.
Troubleshooting
- Keep
send_to_logfire=Falseif you do not want dual-send to Logfire. - Do not set
LOGFIRE_TOKENunless you explicitly want hosted Logfire enabled. - Confirm
OTEL_EXPORTER_OTLP_HEADERScontainsX-Agnost-Org-ID=<your-org-id>.
