{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T10:25:20Z","timestamp":1790936720523,"version":"4.1.0"},"reference-count":46,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"name":"the National Key Research and Development Program of China","award":["No. 2022YFF0902701"],"award-info":[{"award-number":["No. 2022YFF0902701"]}]},{"DOI":"10.13039\/501100001809","name":"the National Natural Science Foundation of China","doi-asserted-by":"crossref","award":["No. 62032016"],"award-info":[{"award-number":["No. 62032016"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"crossref"}]},{"name":"the Shenzhen Science and Technology Program","award":["No. CJGJZD20230724091659002"],"award-info":[{"award-number":["No. CJGJZD20230724091659002"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>Distributed tracing is a pivotal technique for software operators to understand and diagnose issues within microservice-based systems, offering a comprehensive view of user requests propagated through various services. However, the unprecedented volume of traces imposes expensive storage and analytical burdens on online systems. Conventional tracing approaches typically rely on random sampling with a fixed probability for each trace, which risks missing valuable traces. Several tail-based sampling methods have thus been proposed to sample traces based on their content. Nevertheless, these methods primarily evaluate traces on an individual basis, neglecting the collective attributes of the sample set in terms of comprehensiveness, balance, and consistency. To address these issues, we propose TracePicker, an optimization-based online sampler designed to enhance the quality of sampled data while mitigating storage burden. TracePicker employs a streaming anomaly detector to capture and retain anomalous traces that are crucial for troubleshooting. For normal traces, the sampling process is segmented into quota allocation and group sampling, both formulated as integer programming problems. By solving these problems using dynamic programming and evolution algorithms, TracePicker selects a high-quality subset of data, minimizing overall information loss. Experimental results demonstrate that TracePicker outperforms existing tail-based sampling methods in terms of both sampling quality and time consumption.<\/jats:p>","DOI":"10.1145\/3729351","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:15:34Z","timestamp":1750331734000},"page":"1802-1823","source":"Crossref","is-referenced-by-count":4,"title":["TracePicker: Optimization-Based Trace Sampling for Microservice-Based Systems"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7925-3788","authenticated-orcid":false,"given":"Shuaiyu","family":"Xie","sequence":"first","affiliation":[{"name":"Wuhan University, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1559-9314","authenticated-orcid":false,"given":"Jian","family":"Wang","sequence":"additional","affiliation":[{"name":"Wuhan University, Wuhan, China"},{"name":"Zhongguancun Laboratory, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0116-474X","authenticated-orcid":false,"given":"Maodong","family":"Li","sequence":"additional","affiliation":[{"name":"Wuhan University, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0007-1219-4729","authenticated-orcid":false,"given":"Peiran","family":"Chen","sequence":"additional","affiliation":[{"name":"Wuhan University, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2968-3496","authenticated-orcid":false,"given":"Jifeng","family":"Xuan","sequence":"additional","affiliation":[{"name":"Wuhan University, Wuhan, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2165-2636","authenticated-orcid":false,"given":"Bing","family":"Li","sequence":"additional","affiliation":[{"name":"Wuhan University, Wuhan, China"},{"name":"Zhongguancun Laboratory, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"Apache. 2024. Skywalking. https:\/\/skywalking.apache.org\/."},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","unstructured":"Ataollah Fatahi Baarzi and George Kesidis. 2021. Showar: Right-sizing and efficient scheduling of microservices. In Proceedings of the ACM Symposium on Cloud Computing. 427\u2013441. https:\/\/doi.org\/10.1145\/3472883.3486999 10.1145\/3472883.3486999","DOI":"10.1145\/3472883.3486999"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Luiz Carvalho Thelma Elita Colanzi Wesley KG Assun\u00e7\u00e3o Alessandro Garcia Juliana Alves Pereira Marcos Kalinowski Rafael Maiani de Mello Maria Julia de Lima and Carlos Lucena. 2024. On the Usefulness of Automatically Generated Microservice Architectures. IEEE Transactions on Software Engineering (2024). https:\/\/doi.org\/10.1109\/TSE.2024.3361209 10.1109\/TSE.2024.3361209","DOI":"10.1109\/TSE.2024.3361209"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","unstructured":"Liao Chen Shutian Luo Chenyu Lin Zizhao Mo Huanle Xu Kejiang Ye and Chengzhong Xu. 2024. Derm: SLA-aware Resource Management for Highly Dynamic Microservices. (2024) 424\u2013436. https:\/\/doi.org\/10.1109\/ISCA59077.2024.00039 10.1109\/ISCA59077.2024.00039","DOI":"10.1109\/ISCA59077.2024.00039"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","unstructured":"Ruomeng Ding Chaoyun Zhang Lu Wang Yong Xu Minghua Ma Xiaomin Wu Meng Zhang Qingjun Chen Xin Gao Xuedong Gao et al. 2023. TraceDiag: Adaptive Interpretable and Efficient Root Cause Analysis on Large-Scale Microservice Systems. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1762\u20131773. https:\/\/doi.org\/10.1145\/3611643.3613864 10.1145\/3611643.3613864","DOI":"10.1145\/3611643.3613864"},{"key":"e_1_3_1_7_2","unstructured":"eBPF. 2024. ebpf. https:\/\/ebpf.io\/."},{"key":"e_1_3_1_8_2","unstructured":"Rodrigo Fonseca George Porter Randy H Katz and Scott Shenker. 2007. {X-Trace}: A pervasive network tracing framework. In 4th USENIX Symposium on Networked Systems Design & Implementation (NSDI 07)."},{"key":"e_1_3_1_9_2","unstructured":"C. N. C. Foundation. 2024. Jaeger. https:\/\/www.jaegertracing.io\/."},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","unstructured":"Yu Gan Yanqi Zhang Dailun Cheng Ankitha Shetty Priyal Rathi Nayan Katarki Ariana Bruno Justin Hu Brian Ritchken Brendon Jackson et al. 2019. An open-source benchmark suite for microservices and their hardware-software implications for cloud & edge systems. In Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems. 3\u201318. https:\/\/doi.org\/10.1145\/3297858.3304013 10.1145\/3297858.3304013","DOI":"10.1145\/3297858.3304013"},{"key":"e_1_3_1_11_2","unstructured":"Geatpy-dev. 2024. Geatpy2. https:\/\/github.com\/geatpy-dev\/geatpy\/."},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","unstructured":"Shilin He Botao Feng Liqun Li Xu Zhang Yu Kang Qingwei Lin Saravan Rajmohan and Dongmei Zhang. 2023. STEAM: Observability-Preserving Trace Sampling. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1750\u20131761. https:\/\/doi.org\/10.1145\/3611643.3613881 10.1145\/3611643.3613881","DOI":"10.1145\/3611643.3613881"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/3643748"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICWS53863.2021.00063"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","unstructured":"Xinrui Jiang Yicheng Pan Meng Ma and Ping Wang. 2023. Look Deep into the Microservice System Anomaly through Very Sparse Logs. In Proceedings of the ACM Web Conference 2023. 2970\u20132978. https:\/\/doi.org\/10.1145\/3543507.3583338 10.1145\/3543507.3583338","DOI":"10.1145\/3543507.3583338"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","unstructured":"Pedro Las-Casas Jonathan Mace Dorgival Guedes and Rodrigo Fonseca. 2018. Weighted sampling of execution traces: Capturing more needles and less hay. In Proceedings of the ACM Symposium on Cloud Computing. 326\u2013332. https:\/\/doi.org\/10.1145\/3267809.3267841 10.1145\/3267809.3267841","DOI":"10.1145\/3267809.3267841"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","unstructured":"Pedro Las-Casas Giorgi Papakerashvili Vaastav Anand and Jonathan Mace. 2019. Sifter: Scalable sampling for distributed traces without feature engineering. In Proceedings of the ACM Symposium on Cloud Computing. 312\u2013324. https:\/\/doi.org\/10.1145\/3357223.3362736 10.1145\/3357223.3362736","DOI":"10.1145\/3357223.3362736"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1109\/IWQOS52092.2021.9521340"},{"key":"e_1_3_1_19_2","unstructured":"microservices demo. 2024. Sock Shop. https:\/\/github.com\/microservices-demo\/microservices-demo."},{"key":"e_1_3_1_20_2","unstructured":"OpenTelemetry. 2024. Sampling. https:\/\/opentelemetry.io\/docs\/concepts\/sampling\/."},{"key":"e_1_3_1_21_2","unstructured":"OpenTracing. 2024. OpenTracing. https:\/\/opentracing.io\/specification."},{"key":"e_1_3_1_22_2","unstructured":"OpenZipkin. 2024. Zipkin. https:\/\/zipkin.io\/."},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","unstructured":"Jinwoo Park Byungkwon Choi Chunghan Lee and Dongsu Han. 2021. GRAF: A graph neural network based proactive resource allocation framework for SLO-oriented microservices. In Proceedings of the 17th International Conference on emerging Networking EXperiments and Technologies. 154\u2013167. https:\/\/doi.org\/10.1145\/3485983.3494866 10.1145\/3485983.3494866","DOI":"10.1145\/3485983.3494866"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","unstructured":"Xin Peng Chenxi Zhang Zhongyuan Zhao Akasaka Isami Xiaofeng Guo and Yunna Cui. 2022. Trace analysis based microservice architecture measurement. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1589\u20131599. https:\/\/doi.org\/10.1145\/3540250.3558951 10.1145\/3540250.3558951","DOI":"10.1145\/3540250.3558951"},{"key":"e_1_3_1_25_2","unstructured":"Pinpoint-APM. 2024. Pinpoint. https:\/\/pinpoint-apm.github.io\/pinpoint\/."},{"key":"e_1_3_1_26_2","unstructured":"Google Cloud Platform. 2024. Online Boutique. https:\/\/github.com\/GoogleCloudPlatform\/microservices-demo."},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1080\/00031305.1994.10476030"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","unstructured":"Giovanni Quattrocchi Davide Cocco Simone Staffa Alessandro Margara and Gianpaolo Cugola. 2024. Cromlech: Semi-Automated Monolith Decomposition Into Microservices. IEEE Transactions on Services Computing (2024). https:\/\/doi.org\/10.1109\/TSC.2024.3354457 10.1109\/TSC.2024.3354457","DOI":"10.1109\/TSC.2024.3354457"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","unstructured":"Junxian Shen Han Zhang Yang Xiang Xingang Shi Xinrui Li Yunxi Shen Zijian Zhang Yongxiang Wu Xia Yin Jilong Wang et al. 2023. Network-centric distributed tracing with DeepFlow: Troubleshooting your microservices in zero code. In Proceedings of the ACM SIGCOMM 2023 Conference. 420\u2013437. https:\/\/doi.org\/10.1145\/3603269.3604823 10.1145\/3603269.3604823","DOI":"10.1145\/3603269.3604823"},{"key":"e_1_3_1_30_2","unstructured":"Benjamin H Sigelman Luiz Andre Barroso Mike Burrows Pat Stephenson Manoj Plakal Donald Beaver Saul Jaspan and Chandan Shanbhag. 2010. Dapper a large-scale distributed systems tracing infrastructure. Citado na (2010) 47."},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","unstructured":"Rainer Storn. 1996. On the usage of differential evolution for function optimization. In Proceedings of north american fuzzy information processing. Ieee 519\u2013523. https:\/\/doi.org\/10.1109\/NAFIPS.1996.534789 10.1109\/NAFIPS.1996.534789","DOI":"10.1109\/NAFIPS.1996.534789"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","DOI":"10.1023\/A:1008202821328"},{"key":"e_1_3_1_33_2","unstructured":"TracePicker. 2024. TracePicker. https:\/\/github.com\/WHU-AISE\/TracePicker."},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","unstructured":"Shuaiyu Xie Jian Wang Hanbin He Zhihao Wang Yuqi Zhao Neng Zhang and Bing Li. 2024. TVDiag: A Task-oriented and View-invariant Failure Diagnosis Framework with Multimodal Data. arXiv preprint arXiv:2407.19711 (2024). https:\/\/doi.org\/10.48550\/arXiv.2407.19711 10.48550\/arXiv.2407.19711","DOI":"10.48550\/arXiv.2407.19711"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","unstructured":"Shuaiyu Xie Jian Wang Bing Li Zekun Zhang Duantengchuan Li and Patrick CK Hung. 2024. PBScaler: A Bottleneckaware Autoscaling Framework for Microservice-based Applications. IEEE Transactions on Services Computing (2024). https:\/\/doi.org\/10.1109\/TSC.2024.3376202 10.1109\/TSC.2024.3376202","DOI":"10.1109\/TSC.2024.3376202"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1126\/sciadv.aay5853"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","unstructured":"Wanqi Yang Pengfei Chen Kai Liu and Huxing Zhang. 2023. Nahida: In-Band Distributed Tracing with eBPF. arXiv preprint arXiv:2311.09032 (2023). https:\/\/doi.org\/10.48550\/arXiv.2311.09032 10.48550\/arXiv.2311.09032","DOI":"10.48550\/arXiv.2311.09032"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","unstructured":"Guangba Yu Pengfei Chen Hongyang Chen Zijie Guan Zicheng Huang Linxiao Jing Tianjun Weng Xinmeng Sun and Xiaoyun Li. 2021. Microrank: End-to-end latency issue localization with extended spectrum analysis in microservice environments. In Proceedings of the Web Conference 2021. 3087\u20133098. https:\/\/doi.org\/10.1145\/3442381.3449905 10.1145\/3442381.3449905","DOI":"10.1145\/3442381.3449905"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1109\/TCC.2020.2985352"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","unstructured":"Chenxi Zhang Xin Peng Tong Zhou Chaofeng Sha Zhenghui Yan Yiru Chen and Hong Yang. 2022. TraceCRL: contrastive representation learning for microservice trace analysis. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 1221\u20131232. https: \/\/doi.org\/10.1145\/3540250.3549146 10.1145\/3540250.3549146","DOI":"10.1145\/3540250.3549146"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISSRE55969.2022.00032"},{"key":"e_1_3_1_42_2","unstructured":"Lei Zhang Zhiqiang Xie Vaastav Anand Ymir Vigfusson and Jonathan Mace. 2023. The Benefit of Hindsight: Tracing {Edge-Cases} in Distributed Systems. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23). 321\u2013339. https:\/\/www.usenix.org\/conference\/nsdi23\/presentation\/zhang-lei"},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","unstructured":"Yazhuo Zhang Rebecca Isaacs Yao Yue Juncheng Yang Lei Zhang and Ymir Vigfusson. 2023. LatenSeer: Causal Modeling of End-to-End Latency Distributions by Harnessing Distributed Tracing. In Proceedings of the 2023 ACM Symposium on Cloud Computing. 502\u2013519. https:\/\/doi.org\/10.1145\/3620678.3624787 10.1145\/3620678.3624787","DOI":"10.1145\/3620678.3624787"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","unstructured":"Hao Zhou Ming Chen Qian Lin Yong Wang Xiaobin She Sifan Liu Rui Gu Beng Chin Ooi and Junfeng Yang. 2018. Overload control for scaling wechat microservices. In Proceedings of the ACM Symposium on Cloud Computing. 149\u2013161. https:\/\/doi.org\/10.1145\/3267809.3267823 10.1145\/3267809.3267823","DOI":"10.1145\/3267809.3267823"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.1109\/ISSRE59848.2023.00033"},{"key":"e_1_3_1_46_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2018.2887384"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","unstructured":"Xiang Zhou Xin Peng Tao Xie Jun Sun Chenjie Xu Chao Ji and Wenyun Zhao. 2018. Benchmarking microservice systems for software engineering research. In Proceedings of the 40th International Conference on Software Engineering: Companion Proceeedings. 323\u2013324. https:\/\/doi.org\/10.1145\/3183440.3194991 10.1145\/3183440.3194991","DOI":"10.1145\/3183440.3194991"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3729351","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T11:02:04Z","timestamp":1787482924000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3729351"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":46,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3729351"],"URL":"https:\/\/doi.org\/10.1145\/3729351","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}