I Traced One Agent Question. The Trace Found Two Things I Forgot to Turn Off
Description and use
Disabling Code Interpreter and managed memory reduced the agent’s response time from 8.5 s to 1.8 s, indicating that unnecessary services and excessive context were the main latency contributors.
Problem
Determine why an agent’s response time was high and identify unnecessary services contributing to latency.
Outcome
Disabling Code Interpreter and memory reduced latency from 8.5 s to 1.8 s, showing that unnecessary services and excessive context caused most of the delay.
Workflow
- Enable all services (Gateway, Code Interpreter, memory) and run the question. Observe 8.5 s response time and 23 spans. Disable Code Interpreter and memory. Run the same question again. Observe 1.8 s response time and 11 spans. Compare token counts and span times to identify cost contributors.
Evidence
My CloudOps agent answered a simple question in 8.5 seconds. After I switched off the services it did not need, the same question took 1.8 seconds.
The trace had 23 spans. The two model calls took about 6.9 seconds, roughly 81 percent of the request.
I removed Code Interpreter and memory, then asked the same question. The trace had 11 spans.
The answer was the plain health status: service, version, instance counts and no alarms.
- Record date: 2026-10-22T01:26:13.401Z