[SGLang Tracing] Add pd disaggregation mooncake backend tracing (#23755)

Co-authored-by: Mu Huai <tianbowen.tbw@antgroup.com>
Co-authored-by: Shangming Cai <csmthu@gmail.com>
This commit is contained in:
Feng Su
2026-06-03 16:43:29 +08:00
committed by GitHub
co-authored by Mu Huai Shangming Cai
parent 73b53e7a87
commit e67810bea7
9 changed files with 270 additions and 14 deletions
+2 -1
View File
@@ -178,7 +178,8 @@ def build_otel_span_tree(otel_spans):
for span in otel_spans:
parent_span_id = span.get("parentSpanId", "")
if span.get("attributes", {}).get("module") == "sglang::request":
module_name = span.get("attributes", {}).get("module", "")
if module_name == "sglang::request" or module_name == "sglang::mooncake":
root_spans.append(span)
elif parent_span_id in span_id_map:
parent_span = span_id_map[parent_span_id]