Can you get traces from services you cannot modify at all?
AdvancedScenarioTracing and OpenTelemetry
Answer
Situation read → Third-party binaries or legacy apps with no SDK.
What I'd do →
- Use eBPF-based instrumentation (Grafana Beyla/OpenTelemetry eBPF instrumentation, Pixie, Cilium Hubble) for HTTP/gRPC spans and RED metrics.
- Use a service mesh (Istio, Linkerd) that emits spans from sidecars; the app still must forward trace headers for a connected trace.
- Trace at the edges you control (gateway, DB proxy).
Why → eBPF observes syscalls and network traffic without code changes.
Interview tip → Mention the limitation: without header forwarding inside the app, mesh spans are disconnected.
More on Tracing and OpenTelemetry
Your company has 30 microservices and no tracing. How do you roll out distributed tracing?IntermediateTraces stop at service B: you see spans from A, but B's spans start new traces. What is wrong?BeginnerTracing every request costs too much. How do you design sampling?IntermediateYou set up tail sampling with 4 Collector replicas, but traces are fragmented and error traces are missing. Why?AdvancedA checkout request takes 4 seconds. Walk through how you use a trace to find the cause.BeginnerYour OpenTelemetry Collector is getting OOMKilled under load. How do you stabilise it?Intermediate