moo.agent.observability

Logfire observability setup. Instruments the PydanticAI agent loop plus the provider’s underlying SDK client (Anthropic or OpenAI) so every LLM call — including PydanticAI’s structured-output re-asks — is traced with latency and the agent.run span tree. See docs/source/explanation/agent-internals.md (The LLM Client).

Functions

setup_observability(service_name[, provider])

Configure Logfire and instrument the LLM SDK clients.