From b1b6d121a6b054e23162b96a8c764c5f88c06ebd Mon Sep 17 00:00:00 2001 From: Raja Sekhar Rao Dheekonda Date: Mon, 23 Jun 2025 16:56:27 -0700 Subject: [PATCH] fix: handle null metric values from API NaN conversion --- dreadnode/api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dreadnode/api/models.py b/dreadnode/api/models.py index 671739b7..53685180 100644 --- a/dreadnode/api/models.py +++ b/dreadnode/api/models.py @@ -122,7 +122,7 @@ class TraceSpan(BaseModel): class Metric(BaseModel): """Metric data for a span in a trace.""" - value: float + value: float | None """Value of the metric.""" step: int """Step or iteration number for the metric."""