View Traces in Agent Tracer
- how-to
Use the Agent Tracer inside Capella AI Services to view logs from an agent app integrated with Agent Catalog.
Use these logs to debug problematic user-agent sessions.
For more information about the traces that you can view in Agent Tracer, see Agent Tracer Trace Types.
Prerequisites
-
You have completed the Prerequisites and Installed and Set Up Environment Variables for the Agent Catalog.
-
You have deployed a single node or multi-node Capella operational cluster running Couchbase Server version 8.0 or later with the Search Service enabled.
This should be the same cluster you add to your environment variables for the Agent Catalog.
For more information about how to add Services to a cluster, see Modify the Cluster Configuration.
-
You have indexed and published tools and prompts to the Agent Catalog.
-
You have Add Spans and Callbacks to Your Agent.
-
Your user account has the
Organization OwnerorProject Creatororganization role, or 1 of the following project roles: -
You have logged into the Capella UI.
Procedure
To view agent traces in the Agent Tracer UI:
-
In the Capella UI, go to .
-
In the Operational Cluster list, select the cluster you added to your environment variables and configured to collect logs from the Agent Catalog.
-
To filter the displayed logs, do any of the following:
-
In the search bar, choose to search for a Session ID or Tags from the specific trace you want to examine.
For more information about configuring tags, see Add Tags to Spans or Logs.
-
Click the Bucket, Date Range, or App filters to change the displayed sessions.
The app name matches the name of your root span from your logging configuration.
-
-
Click the name of the session that you want to debug to open its logs.
-
In the Session Trace Logs, use the filters to change what messages are displayed from your logs.
For more information about the available trace types, see Agent Tracer Trace Types.
Next Steps
Make sure to monitor your cluster as Agent Catalog publishes logs from your agent. As your logged traces grow, you might need to scale your cluster to avoid performance issues. For more information about scaling your cluster, see Sizing a Cluster and Cluster Scaling.
To view details about specific tools and prompts published to Agent Catalog from your project, see Use the Agent Catalog Tools and Prompts Hub.
To query traces and get more details on your agent activity, see Query Agent Catalog Traces with SQL++.