feat(trace): support SGLANG_TRACE_LEVEL env var for startup trace level (#24716)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tianhe
2026-05-11 10:31:03 -07:00
committed by GitHub
co-authored by Claude Sonnet 4.6
parent 2e69266f84
commit 95985f983d
3 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ opentelemetry_initialized = False
_trace_context_propagator = None
tracer: Optional[trace.Tracer] = None
global_trace_level = 3
global_trace_level = get_int_env_var("SGLANG_TRACE_LEVEL", 3)
TRACE_HEADERS = ["traceparent", "tracestate"]