An OTel Collector config change broke trace ingestion for all services. How do you prevent this?
AdvancedScenarioTracing and OpenTelemetry
Answer
Situation read → The Collector is shared infrastructure; config changes need the same rigour as app deploys.
What I'd do →
- Validate configs in CI:
otelcol-contrib validate --config=config.yaml. - Use GitOps with canary rollout: update one agent group or one Collector replica first.
- Monitor
otelcol_receiver_accepted_spans,otelcol_receiver_refused_spans,otelcol_exporter_send_failed_spans. - Alert on a sudden drop in accepted spans per service.
- Keep the previous config ready for instant rollback.
Why → One bad config affects every service; staged rollout limits the blast radius.
Interview tip → Mention validate command; many candidates do not know it exists.
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