How would you test that a telemetry pipeline is not silently losing or corrupting data?
Answer
Emit a known set of uniquely identifiable metrics, logs and traces, then reconcile what each application, collector, queue, exporter and backend accepts, retries, drops and stores. Verify timestamps, units, resource attributes, trace relationships, transformations and end-to-end delay. Exercise backend outages, rate limits, malformed records, restarts and backpressure, and monitor the monitoring path itself so dropped data, rejected batches, queue saturation and sampling decisions are visible.
Strong answer includes
- reconciles known inputs through every pipeline stage
- tests outages, backpressure and malformed data
- makes drops and delay observable
Practical example
A QA engineer emits exactly 10,000 uniquely tagged log lines and 500 tagged traces from a test service, then queries the final backend an hour later and finds only 9,940 log lines and 480 traces arrived. Checking each hop, the application, the OTel collector, the Kafka queue, and the backend exporter, they find the collector was silently dropping records during a brief backpressure spike without incrementing any dropped-data counter, and flag that the pipeline had no metric exposing its own data loss.