Why does tail sampling need a load-balancing tier, and how do you build it?

AdvancedProductionTracing & Sampling
Answer

All spans of a trace must reach the same collector instance or the policy sees partial traces. Use a two-tier setup: the first tier uses the loadbalancing exporter with routing_key: traceID, the second tier runs tail_sampling.

exporters:
  loadbalancing:
    routing_key: traceID
    protocol:
      otlp: { tls: { insecure: false } }
    resolver:
      k8s: { service: otel-sampler.observability }

When sampler pods scale, the hash ring changes and some traces split; keep the sampler tier stable and sized with headroom.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & Sampling