You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Sprintf("traceId must be a 32-character lowercase hexadecimal string, got '%s'", cfg.TraceID),
523
567
"gateway.opentelemetry.traceId",
524
-
"Provide a valid W3C trace ID (32 lowercase hex chars, e.g., \"4bf92f3577b34da6a3ce929d0e0e4736\"); environment-variable expressions are not supported here")
568
+
"Provide a valid W3C trace ID (32 lowercase hex chars, e.g., \"4bf92f3577b34da6a3ce929d0e0e4736\")")
569
+
}
570
+
ifallZeroTraceID.MatchString(cfg.TraceID) {
571
+
logValidation.Printf("All-zero traceId rejected per W3C Trace Context: %s", cfg.TraceID)
572
+
returnrules.InvalidValue("traceId",
573
+
"traceId must not be all zeros (W3C Trace Context forbids an all-zero trace-id)",
574
+
"gateway.opentelemetry.traceId",
575
+
"Provide a non-zero W3C trace ID (e.g., \"4bf92f3577b34da6a3ce929d0e0e4736\")")
525
576
}
526
577
}
527
578
528
-
// Validate spanId: must be a 16-char lowercase hex string
579
+
// Validate spanId: must be a 16-char lowercase hex string, not all-zero
0 commit comments