How do you trace through a service mesh or load balancer?
AdvancedProductionTracing & Sampling
Answer
Istio/Envoy can create spans for every hop and pass trace headers, but the application must forward the incoming context headers to outgoing calls, otherwise each hop starts a new trace. Configure the mesh to use the same propagation format (W3C) and the same collector endpoint. Mesh spans give network timing; app spans give business context. Cloud load balancers (AWS ALB) add their own headers (X-Amzn-Trace-Id) that you can map or ignore.
More on Tracing & Sampling
In production, when do you pick tail-based over head-based trace sampling, and what does it cost you?BeginnerHow do you configure head sampling correctly in OpenTelemetry?BeginnerHow do you set up tail sampling in the OpenTelemetry Collector?IntermediateWhy does tail sampling need a load-balancing tier, and how do you build it?AdvancedHow do you combine head and tail sampling in a high-traffic system?AdvancedHow do you get accurate RED metrics if traces are sampled?Intermediate