> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitoring an Agent

> How to monitor and evaluate agents in the SGP UI.

<Warning>
  #### Recommendation & Future Development

  While Agent Service remains supported, **Agentex is the recommended path** for all new projects. Future development, new features, and enhancements will be focused primarily on Agentex.
</Warning>

## Monitoring Executions

Every time an agent is run (during testing or otherwise), it is recorded and can be viewed on the traces page. This provides a comprehensive view of all threads and their inputs/outputs, helping you track performance and diagnose issues.

You can navigate to the traces page by clicking the **View Traces** button in the agent header.

<Frame>
  <img src="https://mintcdn.com/scalegp/6cOXFxYysZJE_3yL/images/v5/agents/agent-service/monitor/agent-service-view-trace.png?fit=max&auto=format&n=6cOXFxYysZJE_3yL&q=85&s=637a00ee69e67d5f09bb7fbfee64dd61" alt="View Traces" width="1614" height="816" data-path="images/v5/agents/agent-service/monitor/agent-service-view-trace.png" />
</Frame>

From the traces page you can:

* View the inputs and outputs of each thread
* View the performance metrics of each thread
* View the metadata of each thread
* Filter and search for specific threads

<Frame>
  <img src="https://mintcdn.com/scalegp/6cOXFxYysZJE_3yL/images/v5/agents/agent-service/monitor/traces-page.png?fit=max&auto=format&n=6cOXFxYysZJE_3yL&q=85&s=3babe4ca09a20a6b6ec91283389c3746" alt="Traces Page" width="1614" height="816" data-path="images/v5/agents/agent-service/monitor/traces-page.png" />
</Frame>

Clicking on a trace will open the trace details in a modal.

<Frame>
  <img src="https://mintcdn.com/scalegp/6cOXFxYysZJE_3yL/images/v5/agents/agent-service/monitor/individual-trace.png?fit=max&auto=format&n=6cOXFxYysZJE_3yL&q=85&s=9564f9399d6ef3f044ccae21f398fe03" alt="Individual Trace" width="1614" height="816" data-path="images/v5/agents/agent-service/monitor/individual-trace.png" />
</Frame>
