How do you instrument a service so that an on-call engineer can debug it without code changes? [Advanced]
Answer
I instrument a service with standardized metrics, structured logs, distributed traces, correlation IDs, deployment metadata, dependency spans, and runbook links so on-call can debug without code changes. The goal is predictable telemetry for every request path.
Technical explanation
Metrics should cover RED, dependency health, queue depth, resource saturation, and business-critical counters.
Logs should be structured, sampled responsibly, and include trace_id, service, version, tenant tier, and error code.
Traces should include meaningful span names and attributes but avoid sensitive data.
Hands-on example
Implementation example: add OTel auto-instrumentation, Prometheus /metrics, JSON logging middleware, trace_id injection into logs, deployment annotations, health/readiness endpoints, and dashboards generated from service templates. Validate by running a failure drill before production launch.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- What is cardinality cost, and how does it differ between metrics and logs? [Advanced]
- What is distributed tracing, and what is a span and a trace? [Advanced]
- What is head-based versus tail-based sampling for traces? [Advanced]
- What is the difference between the OpenTelemetry SDK and the Collector? [Advanced]
- How do you build alerts in Wavefront, and what is a smart alert? [Advanced]
- How does Wavefront handle high-cardinality metrics compared to Prometheus? [Advanced]
- What is the Wavefront proxy, and why use it? [Advanced]
- What is Wavefront (Tanzu Observability), and what is it used for? [Advanced]