Measure total timings
curl -s -o /dev/null -w 'dns=%{time_namelookup} connect=%{time_connect} ttfb=%{time_starttransfer} total=%{time_total} ' https://api.example.com/healthInspect response headers
curl -I https://api.example.com/endpointTrace DNS resolution
dig +short api.example.comCorrelate app logs
grep 'request_id=<id>' /var/log/app.log
Notes
- Compare fast and slow requests with the same payload.
- Check if latency is network, app, or database bound.
Related commands: curl -w, dig, grep
Related workflows: Ask an agent to investigate a performance issue