Fix trace_modules gate disabling default trace contexts (#27173)
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user