import failproofai_sdkfrom pydantic_ai import Agentfailproofai_sdk.configure(environment="production")failproofai_sdk.instrument() # before constructing any Agentagent = Agent("openai:gpt-4o-mini", system_prompt="Be terse.")with failproofai_sdk.session(): result = agent.run_sync("...")
instrument() must run before you construct an Agent. The capability is appended at construction, so an agent built earlier records nothing — with no error, because nothing went wrong. This is the most common cause of an empty trace with this adapter, and module-scope agents are where it bites: import failproofai_sdk and call instrument() before importing the module that builds them.
Run it once, then open Observe → Sessions and select your environment. Your run appears as a reconstructed trace.If nothing arrives, confirm the machine is connected with failproofai config --status.
Full Pydantic AI guide
What gets recorded, tools and retries, streaming, span naming, options, and common problems.