[model-gateway][tracing]: implement request tracing using OpenTelemetry with trace context propagation (HTTP) (#13897)

This commit is contained in:
Feng Su
2025-12-06 05:59:04 -08:00
committed by GitHub
parent 6d41791823
commit e12c6b320f
19 changed files with 814 additions and 35 deletions
+2
View File
@@ -207,6 +207,7 @@ impl<B> MakeSpan<B> for RequestSpan {
// Don't try to extract request ID here - it won't be available yet
// The RequestIdLayer runs after TraceLayer creates the span
info_span!(
target: "sgl_model_gateway::otel-trace",
"http_request",
method = %request.method(),
uri = %request.uri(),
@@ -215,6 +216,7 @@ impl<B> MakeSpan<B> for RequestSpan {
status_code = Empty,
latency = Empty,
error = Empty,
module = "sglang::router_rs"
)
}
}