How do you make sure the tracing backend failing never impacts the application?
BeginnerScenarioTracing and OpenTelemetry
Answer
Situation read → Observability must not become a dependency that can take down production.
What I'd do →
- Use the batch span processor (async export), never synchronous export.
- Send to a local Collector agent (node-local) instead of directly to a remote backend.
- Set bounded queues (
OTEL_BSP_MAX_QUEUE_SIZE) so spans are dropped, not memory exhausted. - Set export timeouts (
OTEL_EXPORTER_OTLP_TIMEOUT). - Test by shutting down the Collector in staging.
Why → Dropping telemetry is acceptable; dropping user requests is not.
Interview tip → "Telemetry is best effort" is the right principle to state.
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