Automation & agents · Analysis
Find the slow part of an agent with trace spans
Use a time line of model and tool operations to distinguish reasoning time, external latency and unnecessary data movement.

A ten-second assistant feels slow. A team assumes the provider is responsible and switches models, but the delay remains. The trace reveals two sequential searches and a large response from each.
Give each operation a span
Record starts and finishes for model calls, retrieval and writes. Relationships between spans let you see what ran in parallel and where the main path stopped waiting.
Source · OpenTelemetry · Traces
Ask why each result was fetched
If an agent retrieves a full record to decide which case to open, shorten returned fields to the identifiers and distinguishing details needed at that point. Tool design guidance emphasizes clear and useful results.
Source · Anthropic · Writing effective tools
Compare with a representative sample
Include one easy request, one ambiguous request and one that truly needs two sources. Verify task outcomes stay correct when you remove or parallelize lookups.
What to take away
Optimize the actual dependency on the critical path and keep the evidence for the cases that still need extra time.