fix: update .gitignore to include logs directory and remove outdated waterfall.log

refactor: change trace span to async context manager in knowledge_base_search
refactor: enhance _run_sync_span for better trace handling and cleanup
This commit is contained in:
2026-09-27 17:04:41 +05:00
parent 59bffbed1a
commit 86a79b971e
5 changed files with 17 additions and 61 deletions
+1 -1
View File
@@ -768,7 +768,7 @@ class VoiceSession:
if message.get("role") == "user"
)
retrieval_query = f"{retrieval_query} {user_text}".strip()
with trace_span("knowledge_base_search"):
async with time_span("knowledge_base_search"):
kb_hits = (
knowledge_base.search(
retrieval_query,