Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chore(email): Instrument calls (#1352)
Evan Hutnik972ec7a34027
diff --git a/rust/cloud-storage/email/src/outbound/email_pg_repo.rs b/rust/cloud-storage/email/src/outbound/email_pg_repo.rsindex cc88d45bdb..c6c8721911 100644--- a/rust/cloud-storage/email/src/outbound/email_pg_repo.rs+++ b/rust/cloud-storage/email/src/outbound/email_pg_repo.rs@@ -34,6 +34,7 @@ impl EmailPgRepo {impl EmailRepo for EmailPgRepo {type Err = sqlx::Error;+ #[tracing::instrument(err, skip(self, query), fields(link_id = %query.link_id, view = %query.view))]async fn previews_for_view_cursor(&self,query: PreviewCursorQuery,@@ -109,6 +110,7 @@ impl EmailRepo for EmailPgRepo {.collect())}+ #[tracing::instrument(err, skip(self))]async fn attachments_by_thread_ids(&self,thread_ids: &[Uuid],@@ -146,6 +148,7 @@ impl EmailRepo for EmailPgRepo {.collect())}+ #[tracing::instrument(err, skip(self))]async fn contacts_by_thread_ids(&self, thread_ids: &[Uuid]) -> Result<Vec<Contact>, Self::Err> {// Define a struct to hold the joined results#[derive(Debug, Doppleganger)]@@ -179,6 +182,7 @@ impl EmailRepo for EmailPgRepo {.collect())}+ #[tracing::instrument(err, skip(self))]async fn labels_by_thread_ids(&self, thread_ids: &[Uuid]) -> Result<Vec<Label>, Self::Err> {// Query all labels for email_messages in the provided threads// Include thread_id in the result set