[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:
co-authored by
Mu Huai
Shangming Cai
parent
73b53e7a87
commit
e67810bea7
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user