Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ai): logging (#2063)

Eric Hayes07968ec93d39
diff --git a/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message.rs b/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message.rs
index 4b50ca2b4b..8a3d6839bc 100644
--- a/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message.rs
+++ b/rust/cloud-storage/document_cognition_service/src/api/stream/chat_message.rs
@@ -322,6 +322,7 @@ async fn create_new_chat(
/// Creates a payload stream, publishes it via `from_async_stream`, and stores
/// the conversation messages after the stream finishes.
#[expect(clippy::too_many_arguments, reason = "matches WS handler signature")]
+#[tracing::instrument(skip(ctx, request, toolset, user_message_content))]
fn stream_and_save_message(
ctx: Arc<ApiContext>,
request: ai::types::ChatCompletionRequest,