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.

chore(soup): tracing (#833)

Sean Aye72744b11cb43
diff --git a/rust/cloud-storage/soup/src/domain/service.rs b/rust/cloud-storage/soup/src/domain/service.rs
index 77d16e23db..5325b64e83 100644
--- a/rust/cloud-storage/soup/src/domain/service.rs
+++ b/rust/cloud-storage/soup/src/domain/service.rs
@@ -299,6 +299,7 @@ where
V: EmailService,
C: ChannelsService,
{
+ #[tracing::instrument(err, skip(self))]
async fn get_user_soup(&self, req: SoupRequest) -> Result<SoupOutput, SoupErr> {
let limit = req.limit.clamp(20, 500);
let paginate_filter = req.cursor.filter().cloned();
diff --git a/rust/cloud-storage/soup/src/inbound/axum_router.rs b/rust/cloud-storage/soup/src/inbound/axum_router.rs
index 9ccc463d67..123b44431d 100644
--- a/rust/cloud-storage/soup/src/inbound/axum_router.rs
+++ b/rust/cloud-storage/soup/src/inbound/axum_router.rs
@@ -305,6 +305,7 @@ type SoupCursor = EitherWrapper<
(status = 500, body=ErrorResponse),
)
)]
+#[tracing::instrument(err, skip_all)]
pub async fn post_soup_handler<T, U>(
State(service): State<SoupRouterState<T, U>>,
Cached(MacroUserExtractor { macro_user_id, .. }): Cached<MacroUserExtractor>,