> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-docs-scavio-google-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Atla Observability Integration

> Wrap a web-search agent run in atla_insights instrument_agno to capture OpenAI traces in Atla.

Demonstrates adding Atla observability to an Agno agent.

```python atla_op.py theme={null}
"""
Atla Observability Integration
==============================

Demonstrates adding Atla observability to an Agno agent.
"""

from os import getenv

from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.websearch import WebSearchTools
from atla_insights import configure, instrument_agno

# ---------------------------------------------------------------------------
# Setup
# ---------------------------------------------------------------------------
configure(token=getenv("ATLA_API_KEY"))


# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------
agent = Agent(
    name="Stock Price Agent",
    model=OpenAIChat(id="gpt-4o-mini"),
    tools=[WebSearchTools()],
    instructions="You are a stock price agent. Answer questions in the style of a stock analyst.",
    debug_mode=True,
)


# ---------------------------------------------------------------------------
# Run Example
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    # Instrument and run
    with instrument_agno("openai"):
        agent.print_response("What are the latest news about the stock market?")
```

## Run the Example

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno atla-insights ddgs openai
    ```
  </Step>

  <Step title="Export your API keys">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      export ATLA_API_KEY="your_atla_api_key_here"
      export OPENAI_API_KEY="your_openai_api_key_here"
      ```

      ```bash Windows theme={null}
      $Env:ATLA_API_KEY="your_atla_api_key_here"
      $Env:OPENAI_API_KEY="your_openai_api_key_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `atla_op.py`, then run:

    ```bash theme={null}
    python atla_op.py
    ```
  </Step>
</Steps>

Full source: [cookbook/observability/atla\_op.py](https://github.com/agno-agi/agno/blob/main/cookbook/observability/atla_op.py)
