Analyzing round trip query latency
Summary
Datadog's guide explains that round trip latency is not just database time; it encompasses all hops between an application and the database. It provides a practical framework to decompose latency into round trip time and database time, with a Round Trip Overhead metric to pinpoint the bottleneck. A PgBouncer example demonstrates diagnosing latency across the full stack by correlating APM and Database Monitoring to identify whether the issue lies outside the database, and it emphasizes actionable remediation paths.