Research Articles
Trace Sampling for Rare Latency Spikes: Concurrent Changes
Farah Wrenford (Machine Learning Laboratory, Ivermere University)
Vol. 7 No. 1 (2024) · pp. 15–27 · Published 6 February 2024
Abstract
The comparison uses a test fixture with overlapping transitions to evaluate two choices: retaining complete traces when the critical path exceeds a threshold and sampling requests uniformly at the same storage budget. All outcomes are synthetic. Each configuration is evaluated on the same 144 cases. In the 36 stress cases, a delayed child span must arrive after its parent trace has been reported; both changes are replayed together as well as separately to distinguish an interaction from an isolated error. 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 93 of 144 cases, versus 96 for the comparator. In the stress subset, the respective counts are 15 and 18 of 36. The alternative falls below the comparator overall by 2.1 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, concurrent changes, synthetic evaluation
References
- Corbett, A. T., & Anderson, J. R. (1994). Knowledge tracing: Modeling the acquisition of procedural knowledge. User Modeling and User-Adapted Interaction, 4(4), 253–278.
- 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.
- 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.
- Golchin, S., & Surdeanu, M. (2023). Time travel in LLMs: Tracing data contamination in large language models. arXiv:2308.08493.
- Lamport, L. (1978). Time, clocks, and the ordering of events in a distributed system. Communications of the ACM, 21(7), 558–565.
- 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.
- McKenzie, I. R., et al. (2023). Inverse scaling: When bigger isn't better. Transactions on Machine Learning Research.
- Nelson, J., et al. (2015). Latency-tolerant software distributed shared memory. Proceedings of the 2015 USENIX Annual Technical Conference, 291–305.
- 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.
- Reiss, C., Tumanov, A., Ganger, G. R., Katz, R. H., & Kozuch, M. A. (2012). Heterogeneity and dynamicity of clouds at scale: Google trace analysis. Proceedings of the 3rd ACM Symposium on Cloud Computing, Article 7.
- Salathé, M., et al. (2020). Early evidence of effectiveness of digital contact tracing for SARS-CoV-2 in Switzerland. Swiss Medical Weekly, 150, w20457.
- Sigelman, B. H., et al. (2010). Dapper, a large-scale distributed systems tracing infrastructure (Technical Report dapper-2010-1). Google.
- Wang, Z., et al. (2023). Gemini: Fast failure recovery in distributed training with in-memory checkpoints. Proceedings of the 29th Symposium on Operating Systems Principles, 364–381.
- 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.
