This guide covers manual instrumentation. For quicker setup, use auto-instrumentation.
Setup
Install Braintrust alongside Agno:.env
Trace with Agno
To enable automatic tracing, callsetup_agno() before creating your agents or workflows.
This example creates a stock price agent with Yahoo Finance tools:
Python
agno_braintrust.py
Trace Agno workflows
setup_agno() also instruments Agno workflows, including workflow-level spans around run(), async execution, and streaming execution paths.
agno_workflow_braintrust.py