Fix trace_modules gate disabling default trace contexts (#27173)

This commit is contained in:
Liangsheng Yin
2026-06-03 14:03:42 -04:00
committed by GitHub
parent 45604a0f4a
commit 578f232e5e
7 changed files with 65 additions and 54 deletions
+5 -1
View File
@@ -306,7 +306,11 @@ async def lifespan(fast_api_app: FastAPI):
# Init tracing
if server_args.enable_trace:
process_tracing_init(server_args.otlp_traces_endpoint, "sglang")
process_tracing_init(
server_args.otlp_traces_endpoint,
"sglang",
trace_modules=server_args.trace_modules,
)
if server_args.disaggregation_mode == "prefill":
thread_label = "Prefill" + thread_label
elif server_args.disaggregation_mode == "decode":