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(search_service): add error logging to opensearch client (#78)
Will Hutchinson67526cade3c4
diff --git a/infra/stacks/search-service/index.ts b/infra/stacks/search-service/index.tsindex eac05d17ce..fd5782390c 100644--- a/infra/stacks/search-service/index.ts+++ b/infra/stacks/search-service/index.ts@@ -89,7 +89,7 @@ const searchService = new SearchService(`${BASE_NAME}-${stack}`, {name: 'RUST_LOG',value: `search_service=${stack === 'prod' ? 'info' : 'trace'- },macro_db_client=info`,+ },macro_db_client=info,opensearch_client=error`,},{name: 'DATABASE_URL',diff --git a/rust/cloud-storage/opensearch_client/src/search/channels.rs b/rust/cloud-storage/opensearch_client/src/search/channels.rsindex 1e95aa8ca7..108ccfd4bf 100644--- a/rust/cloud-storage/opensearch_client/src/search/channels.rs+++ b/rust/cloud-storage/opensearch_client/src/search/channels.rs@@ -195,6 +195,7 @@ impl ChannelMessageSearchArgs {}}+#[tracing::instrument(skip(client, args), err)]pub(crate) async fn search_channel_messages(client: &opensearch::OpenSearch,args: ChannelMessageSearchArgs,diff --git a/rust/cloud-storage/opensearch_client/src/search/chats.rs b/rust/cloud-storage/opensearch_client/src/search/chats.rsindex 307ccb008f..36a2141218 100644--- a/rust/cloud-storage/opensearch_client/src/search/chats.rs+++ b/rust/cloud-storage/opensearch_client/src/search/chats.rs@@ -139,6 +139,7 @@ impl ChatSearchArgs {}}+#[tracing::instrument(skip(client, args), err)]pub(crate) async fn search_chats(client: &opensearch::OpenSearch,args: ChatSearchArgs,diff --git a/rust/cloud-storage/opensearch_client/src/search/documents.rs b/rust/cloud-storage/opensearch_client/src/search/documents.rsindex faec11a1f6..d47bb77ebe 100644--- a/rust/cloud-storage/opensearch_client/src/search/documents.rs+++ b/rust/cloud-storage/opensearch_client/src/search/documents.rs@@ -120,6 +120,7 @@ impl DocumentSearchArgs {}}+#[tracing::instrument(skip(client, args), err)]pub(crate) async fn search_documents(client: &opensearch::OpenSearch,args: DocumentSearchArgs,diff --git a/rust/cloud-storage/opensearch_client/src/search/emails.rs b/rust/cloud-storage/opensearch_client/src/search/emails.rsindex 2e8a475bd9..9fff5037c4 100644--- a/rust/cloud-storage/opensearch_client/src/search/emails.rs+++ b/rust/cloud-storage/opensearch_client/src/search/emails.rs@@ -243,6 +243,7 @@ impl EmailSearchArgs {}}+#[tracing::instrument(skip(client, args), err)]pub(crate) async fn search_emails(client: &opensearch::OpenSearch,args: EmailSearchArgs,diff --git a/rust/cloud-storage/opensearch_client/src/search/projects.rs b/rust/cloud-storage/opensearch_client/src/search/projects.rsindex c425e26407..b7f4835b86 100644--- a/rust/cloud-storage/opensearch_client/src/search/projects.rs+++ b/rust/cloud-storage/opensearch_client/src/search/projects.rs@@ -121,6 +121,7 @@ pub struct ProjectSearchResponse {pub content: Option<Vec<String>>,}+#[tracing::instrument(skip(client, args), err)]pub(crate) async fn search_projects(client: &opensearch::OpenSearch,args: ProjectSearchArgs,