This example shows how to add observability to your agno agent with Atla.

Code

cookbook/integrations/observability/atla_op.py
from os import getenv

from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from atla_insights import configure, instrument_agno

configure(token=getenv("ATLA_API_KEY"))

agent = Agent(
    name="Internet Search Agent",
    model=OpenAIChat(id="gpt-5-mini"),
    tools=[DuckDuckGoTools()],
    instructions="You are an internet search agent. Find and provide accurate information on any topic.",
    debug_mode=True,
)

# Instrument and run
with instrument_agno("openai"):
    agent.print_response("What are the latest developments in artificial intelligence?")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
python3 -m venv .venv
source .venv/bin/activate
2

Set your API key

Sign up for an account at https://app.atla-ai.com
export ATLA_API_KEY=<your-key>
3

Install libraries

pip install -U agno atla-insights openai
4

Run Agent

python cookbook/integrations/observability/atla_op.py