Agno (tracing)
Agno (tracing)
Agno is a Python framework for building agents and teams with model calls, tools, streaming runs, and multi-agent coordination. Respan’s Agno integration patches Agno’s native Agent.run, Agent.arun, Team.run, and Team.arun methods and sends agent, team, chat, tool, and event spans through respan-tracing.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Use Respan Gateway
See Agno gateway setup to route this integration through the Respan gateway.
Example projects
- Example repo root:
respan-example-projects/python/tracing/agno
Setup
Set environment variables
RESPAN_API_KEY exports traces to Respan. OPENAI_API_KEY is used by Agno’s OpenAI model client in this tracing-only setup.
View your trace
Open the Traces page to see the named workflow with Agno agent, chat, and tool spans. Use unique workflow names, such as agno_01_hello_world, so each example is easy to recognize in the trace list.
Configuration
Respan
AgnoInstrumentor
What gets traced
Attributes
In Respan()
Set defaults at initialization. These apply to all spans emitted by the Agno instrumentor.
With propagate_attributes
Override per request using a context scope.
Decorators
Agno runs are auto-traced by the instrumentor. Use @workflow and @task when you want a recognizable root span around a full script or request. This is the pattern used by the example set so each result is visible by script name in the trace list.