Interview › Istio & Service Mesh
Why must applications propagate trace headers even with Istio?
Istio & Service Mesh · Intermediate level
Answer
Applications must propagate trace headers because the proxy can observe hops but cannot automatically know how an application maps an inbound request to an outbound request. Header propagation carries the trace context across process boundaries.
Technical explanation
Envoy can create spans, but the application decides which outbound calls belong to the inbound request being handled.
If the app drops headers, downstream services may receive traffic but create unrelated traces.
Framework-level instrumentation with OpenTelemetry is the cleanest way to preserve context consistently.
Hands-on example
Code-level check:
Incoming request contains traceparent.
The service must copy context when calling downstream:
GET /payment HTTP/1.1
traceparent: 00-<trace-id>-<span-id>-01Test by sending one request and checking whether frontend, checkout, and payment appear under the same trace ID.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- How does Istio enable distributed tracing, and what is required from the application?
- What is the typical latency and resource overhead of the sidecar, and how do you minimise it?
- How does Istio integrate with Prometheus for metrics?
- What telemetry does Istio provide out of the box (metrics, logs, traces)?
- How do you use istioctl proxy-config and proxy-status to debug Envoy?
- How does Istio issue and rotate workload certificates (SPIFFE/SPIRE concepts)?
- What does istioctl analyze do?
- How does Istio enable a Zero Trust posture inside the cluster?