Skip to content

feat(webhooks): skip echo webhooks in the request log by default - #1830

Merged
viethung0o0 merged 1 commit into
mainfrom
fix/skip-echo-webhook-logs
Nov 30, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
fix/skip-echo-webhook-logs

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

  • Stop writing the webhook request log for echoes (messages the business sent, coming back as webhooks), which cuts a large share of webhook log volume.
  • Each channel says how it marks an echo: Messenger (incl. marketing messages), Instagram, WhatsApp (Business app and standby), Zalo and TikTok.
  • Every other webhook is logged as before, including batches that mix echoes with other events.
  • Set WEBHOOK_ECHO_LOG_CHANNELS (integration types, comma-separated, or *) to keep logging echoes for a channel.

Test plan

  • pnpm lint and check-types for the touched workspaces
  • Unit tests for each channel's echo detection and for the request log
  • Local builder with LOG_DEBUG=true: echoes are not logged, customer messages and mixed batches still are
  • Check webhook log volume after deploy

@github-actions github-actions Bot added the feature New feature or request label Nov 30, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review November 30, 2026 16:40
@viethung0o0
viethung0o0 merged commit a72337e into main Nov 30, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants