Research Articles
Trace Sampling for Rare Latency Spikes: Delayed Feedback
Selin Glenwick (Machine Learning Laboratory, Pinewick School of Engineering)
Vol. 4 No. 1 (2021) · pp. 148–161 · Published 25 October 2021
Abstract
We ask whether retaining complete traces when the critical path exceeds a threshold performs better than sampling requests uniformly at the same storage budget in a setting where feedback is available only after the next decision. The evaluation is synthetic. Each configuration is evaluated on the same 300 cases. In the 75 stress cases, a delayed child span must arrive after its parent trace has been reported; the analysis distinguishes decisions made with incomplete feedback from those scored after the full trace is known. 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 comparator passes 229 of 300 cases and the alternative passes 238. For the 75 stress cases alone, the counts are 38 and 48, respectively. The aggregate count does not establish that the alternative is preferable at every operating point. The practical trade-off is that tail-based retention requires memory while traces are incomplete. The result describes the chosen case mix. Before applying the finding, a follow-up benchmark would need to vary the share of difficult cases without relaxing the acceptance criteria.
Keywords: distributed tracing, observability, latency, delayed feedback, synthetic evaluation
References
- 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.
- Altmann, S., et al. (2020). Acceptability of app-based contact tracing for COVID-19: Cross-country survey study. JMIR mHealth and uHealth, 8(8), e19857.
- Chen, J., Pan, X., Monga, R., Bengio, S., & Jozefowicz, R. (2016). Revisiting distributed synchronous SGD. arXiv:1604.00981.
- Cho, H., Ippolito, D., & Yu, Y. W. (2020). Contact tracing mobile apps for COVID-19: Privacy considerations and related trade-offs. arXiv:2003.11511.
- 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.
- Hinch, R., et al. (2020). Effective configurations of a digital contact tracing app: A report to NHSX. University of Oxford.
- Konečný, J., McMahan, H. B., Ramage, D., & Richtárik, P. (2016). Federated optimization: Distributed machine learning for on-device intelligence. arXiv:1610.02527.
- Kretzschmar, M. E., et al. (2020). Impact of delays on effectiveness of contact tracing strategies for COVID-19: A modelling study. The Lancet Public Health, 5(8), e452–e459.
- Leith, D. J., & Farrell, S. (2020). Coronavirus contact tracing: Evaluating the potential of using Bluetooth received signal strength for proximity detection. ACM SIGCOMM Computer Communication Review, 50(4), 66–74.
- 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.
- McDonald, R., Hall, K., & Mann, G. (2010). Distributed training strategies for the structured perceptron. Proceedings of NAACL HLT 2010, 456–464.
- 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.
- Sigelman, B. H., et al. (2010). Dapper, a large-scale distributed systems tracing infrastructure (Technical Report dapper-2010-1). Google.
