This guide demonstrates how to use TrueFoundry OtelCollector along with the Traceloop SDK to instrument google ADK agent code. In this example, the Google agent is a research agent which researches the latest trends to conduct detailed market research with keen attention to detail. For example, it can generate “A comprehensive report on AI and machine learning.”
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.
Install Dependencies
First, you need to install the following
Add Tracing code to Google ADK agents
For CrewAI agents, we need to add the Traceloop.init()
call to the application. The Traceloop SDK will automatically trace all agent activities.
Run your application and view logged trace
This guide demonstrates how to use TrueFoundry OtelCollector along with the Traceloop SDK to instrument google ADK agent code. In this example, the Google agent is a research agent which researches the latest trends to conduct detailed market research with keen attention to detail. For example, it can generate “A comprehensive report on AI and machine learning.”
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.
Install Dependencies
First, you need to install the following
Add Tracing code to Google ADK agents
For CrewAI agents, we need to add the Traceloop.init()
call to the application. The Traceloop SDK will automatically trace all agent activities.
Run your application and view logged trace