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
fix(whatsapp-session): ship application logs to Datadog over TLS on 443 (#8971)
Wolf Mermelstein7654e8e75114
diff --git a/infra/stacks/whatsapp-session-service/AGENTS.md b/infra/stacks/whatsapp-session-service/AGENTS.mdindex 0973f7ce84..049d5a329e 100644--- a/infra/stacks/whatsapp-session-service/AGENTS.md+++ b/infra/stacks/whatsapp-session-service/AGENTS.md@@ -41,6 +41,9 @@ From `infra/`: `bun run check`, `bunx biome check stacks/whatsapp-session-servic- `stopTimeout` is Fargate's 120 s maximum and the sidecars match it; the appcontainer depends on them so they stop last and the drain's logs and spansship. Drain must finish inside 120 s.+- Egress allows only 443, so the FireLens Datadog output sets `TLS on` and+ `Port 443`; Fluent Bit's default is plain HTTP on 80, which times out and+ drops every application log.- No ECS container health check: the runtime image has no HTTP client. Areplica that loses its lock connection must exit non-zero so ECS replaces it.- No autoscaling: replicas own accounts, so scaling in forces takeovers. Changediff --git a/infra/stacks/whatsapp-session-service/service.ts b/infra/stacks/whatsapp-session-service/service.tsindex 7bdb630d6c..62bab9670e 100644--- a/infra/stacks/whatsapp-session-service/service.ts+++ b/infra/stacks/whatsapp-session-service/service.ts@@ -291,6 +291,9 @@ export class WhatsappSessionService extends pulumi.ComponentResource {options: {Name: 'datadog',Host: 'http-intake.logs.us5.datadoghq.com',+ // Egress allows only 443; Fluent Bit defaults to plain 80.+ TLS: 'on',+ Port: '443',apikey: DATADOG_API_KEY,dd_service: BASE_NAME,dd_source: 'fargate',