Interview Prep/SRE & Reliability/Observability & Telemetry Decisions

During an incident, a trace shows a 1.8 s gap with no spans between the API and the database call. What do you investigate?

AdvancedScenarioObservability & Telemetry Decisions
Answer

Situation read → A gap means time was spent in code or waiting on something not instrumented: a connection pool queue, a lock, GC, thread pool starvation, or DNS.

What I'd do →

  1. Check connection pool metrics around the time (HikariCP hikaricp_connections_pending, pool wait time).
  2. Check GC pauses and CPU throttling on the pod (container_cpu_cfs_throttled_periods_total).
  3. Check thread pool/event loop metrics (executor queue depth, Node.js event loop lag).
  4. Use a continuous profiler (Pyroscope, Parca) for the same time window to see where CPU or wall time went.
  5. Add spans around pool acquisition and outbound DNS lookups so the gap becomes visible next time.

Why → Traces only show what is instrumented; gaps point at resource waiting inside the process.

Interview tip → Mention continuous profiling as the fourth signal next to metrics, logs and traces.

All SRE & Reliability questions

More on Observability & Telemetry Decisions