Interview Prep/Monitoring & Observability/Tracing and OpenTelemetry

You set up tail sampling with 4 Collector replicas, but traces are fragmented and error traces are missing. Why?

AdvancedScenarioTracing and OpenTelemetry
Answer

Situation read → Spans of one trace land on different replicas, so each makes a decision on partial data.

What I'd do →

  1. Add a first tier of Collectors with the loadbalancing exporter, routing_key: traceID, resolving the second tier via a headless Service (k8s or dns resolver).
  2. Run tail_sampling only on the second tier.
  3. Size decision_wait to cover your longest normal trace and num_traces to fit memory.
  4. Monitor otelcol_processor_tail_sampling_* metrics and dropped spans.

Why → Tail sampling needs the complete trace in one place before deciding.

Interview tip → Scaling the second tier reshuffles trace ownership briefly; mention that you accept a little fragmentation during scale events.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing and OpenTelemetry