Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: don't log null values to otel (#2079)
cthomas782971f0dc20
diff --git a/letta/server/rest_api/utils.py b/letta/server/rest_api/utils.pyindex ab20557ef..e025a2dd9 100644--- a/letta/server/rest_api/utils.py+++ b/letta/server/rest_api/utils.py@@ -72,7 +72,7 @@ async def sse_async_generator(ttft_span = Noneif request_start_timestamp_ns is not None:ttft_span = tracer.start_span("time_to_first_token", start_time=request_start_timestamp_ns)- ttft_span.set_attributes({f"llm_config.{k}": v for k, v in llm_config.model_dump().items()})+ ttft_span.set_attributes({f"llm_config.{k}": v for k, v in llm_config.model_dump().items() if v is not None})try:async for chunk in generator: