Skip to content

Research Articles

Trace Sampling for Rare Latency Spikes: Cold Versus Warm Runs

Elena Eastmarsh (Distributed Systems Group, Thornmere Polytechnic), Soraya Ternwell (Distributed Systems Group, Kestrelby Institute of Technology), Emil Valehart (Distributed Systems Group, Ravenmere Technical University), Selin Belmere (Distributed Systems Group, Ravenmere Technical University)

Vol. 8 No. 1 (2025) · pp. 88–102 · Published 7 June 2025

Abstract

This synthetic study compares retaining complete traces when the critical path exceeds a threshold with sampling requests uniformly at the same storage budget in a mix of fresh-start and steady-state trials. Each configuration is evaluated on the same 160 cases. In the 40 stress cases, a delayed child span must arrive after its parent trace has been reported; initialization cost is kept in the comparison instead of discarding the first completed trial. A case counts as a pass only if it meets this criterion: a test incident must yield enough linked spans to identify the delayed stage. Each pair receives the same workload and interruption schedule. Results include timed-out requests and unfinished recovery attempts, preventing either configuration from appearing faster by dropping difficult work. The first configuration passes 121 of 160 cases, versus 114 for the comparator. In the stress subset, the respective counts are 31 and 25 of 40. The alternative exceeds the comparator overall by 4.4 percentage points. The practical trade-off is that tail-based retention requires memory while traces are incomplete. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.

Keywords: distributed tracing, observability, latency, cold versus warm runs, synthetic evaluation

References

  1. Alon, U., Zilberstein, M., Levy, O., & Yahav, E. (2019). code2vec: Learning distributed representations of code. Proceedings of the ACM on Programming Languages, 3(POPL), Article 40.
  2. Baumgärtner, L., et al. (2020). Mind the GAP: Security & privacy risks of contact tracing apps. arXiv:2006.05914.
  3. Brown, B., et al. (2024). Large language monkeys: Scaling inference compute with repeated sampling. arXiv:2407.21787.
  4. Erlingsson, Ú., Peinado, M., Peter, S., & Budiu, M. (2011). Fay: Extensible distributed tracing from kernels to clusters. Proceedings of the 23rd ACM Symposium on Operating Systems Principles, 311–326.
  5. Fonseca, R., Porter, G., Katz, R. H., Shenker, S., & Stoica, I. (2007). X-Trace: A pervasive network tracing framework. Proceedings of the 4th USENIX Symposium on Networked Systems Design and Implementation, 271–284.
  6. Gemulla, R., Nijkamp, E., Haas, P. J., & Sismanis, Y. (2011). Large-scale matrix factorization with distributed stochastic gradient descent. Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 69–77.
  7. Golchin, S., & Surdeanu, M. (2023). Time travel in LLMs: Tracing data contamination in large language models. arXiv:2308.08493.
  8. Goller, C., & Küchler, A. (1996). Learning task-dependent distributed representations by backpropagation through structure. Proceedings of the IEEE International Conference on Neural Networks, 347–352.
  9. Hinch, R., et al. (2020). Effective configurations of a digital contact tracing app: A report to NHSX. University of Oxford.
  10. Liu, M., Cui, T., Schuh, H., Krishnamurthy, A., Peter, S., & Gupta, K. (2019). Offloading distributed applications onto SmartNICs using iPipe. Proceedings of the ACM Special Interest Group on Data Communication, 318–333.
  11. Mace, J., Roelke, R., & Fonseca, R. (2015). Pivot tracing: Dynamic causal monitoring for distributed systems. Proceedings of the 25th Symposium on Operating Systems Principles, 378–393.
  12. Nelson, J., et al. (2015). Latency-tolerant software distributed shared memory. Proceedings of the 2015 USENIX Annual Technical Conference, 291–305.
  13. Ousterhout, K., Wendell, P., Zaharia, M., & Stoica, I. (2013). Sparrow: Distributed, low latency scheduling. Proceedings of the 24th ACM Symposium on Operating Systems Principles, 69–84.
  14. Pathak, A., Hu, Y. C., Zhang, M., Bahl, P., & Wang, Y.-M. (2011). Fine-grained power modeling for smartphones using system call tracing. Proceedings of the Sixth Conference on Computer Systems (EuroSys 2011), 153–168.
  15. Peng, Y., et al. (2019). A generic communication scheduler for distributed DNN training acceleration. Proceedings of the 27th ACM Symposium on Operating Systems Principles, 16–29.
  16. Sigelman, B. H., et al. (2010). Dapper, a large-scale distributed systems tracing infrastructure (Technical Report dapper-2010-1). Google.
  17. Zheng, L., et al. (2022). Alpa: Automating inter- and intra-operator parallelism for distributed deep learning. Proceedings of the 16th USENIX Symposium on Operating Systems Design and Implementation, 559–578.