Skip to main content
This guide demonstrates how to use TrueFoundry OtelCollector along with the Traceloop SDK to instrument Agno agent code. In this example, the Agno agent is a research agent which researches the latest trends to conduct detailed market research. For example, it can generate “A comprehensive report on AI and machine learning.”
1

Create Tracing Project, API Key and copy tracing code

Follow the instructions in Getting Started to create a tracing project, generate API key and copy the tracing code.
2

Install Dependencies

First, you need to install the following
3

Add Tracing code to Agno agent application

For Agno agents, we need to add the Traceloop.init() call to the application. We should also add the @workflow, @task and @tool decorators to the workflow, task and tool functions respectively.
Agno Agent Code
4

Run your application and view logged trace