metrics: don't clock-rebase unset time sentinels in ReqTimeStats deserialization (#34335)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Sam Shleifer
2026-08-12 14:27:47 +08:00
committed by GitHub
co-authored by Claude Fable 5
parent 793a11dd27
commit a2e88279c2
2 changed files with 45 additions and 1 deletions
@@ -363,7 +363,7 @@ class ReqTimeStatsBase:
state["trace_ctx"] = TraceNullContext()
for key in state.keys():
if key.endswith("time"):
if key.endswith("time") and state[key]:
state[key] = convert_time_cross_thread(
state[key],
state["diff_realtime_monotonic"],