Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Observability & productionMiddleOccasionalScenario

How would you approach distributed traces when failures are intermittent?

Answer

Start by tracing a user-visible symptom through telemetry to the responsible change and dependency. Focus on distributed traces when failures are intermittent. Use service-level objectives, known test events and correlated logs, metrics and traces as the oracle. Cover signal correctness, context propagation, sampling, alert routing, rollout and recovery. Keep data and dependencies controlled enough to reproduce failures. Release only when a responder can detect, scope and diagnose the failure within the agreed operational target.

Strong answer includes

  • explicit risk and test oracle for distributed traces
  • tests telemetry as product behavior
  • prefers actionable symptom-based alerts
  • measurable evidence and residual-risk statement

Practical example

A slow checkout happens for maybe 1 in 500 requests. The tester's approach is to enable tail-based sampling that specifically keeps traces for any request exceeding a latency threshold, rather than relying on the default random 1% sampling, which was likely throwing away the exact slow traces needed to diagnose the problem.

#observability#production#sre#distributed-traces

Sources

OpenTelemetry conceptsOpenTelemetry · Traces, metrics, logs, context propagation and instrumentationPrometheus alerting practicesPrometheus · Symptom-based actionable alerts, metamonitoring and noise reductionConfigure liveness, readiness and startup probesKubernetes · Service health, traffic readiness, recovery and probe failure modes