Skip to main content
This example shows how to enable tracing for an agent. Once tracing is enabled, all agent runs, model calls, and tool executions are automatically captured and stored in your database.
1

Create a Python file

basic_agent_tracing.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run the agent

Developer Resources