Spaces:
Runtime error
Runtime error
Commit History
-
refactor(notification-ms): enhance structured logging across all channels
- Migrate from f-string logging to structured logging with extra context fields - Add event identifiers to all log statements for better observability - Include contextual metadata (merchant_id, template_name, recipient, etc.) in logs - Replace exception string interpolation with exc_info=True for proper stack traces - Update cache service logging to use structured format with operation-specific events - Enhance email channel logging with recipient and template context - Improve push notification logging with provider message IDs and merchant tracking - Update SMS channel logging with provider request IDs and error details - Add WhatsApp channel structured logging with message IDs and status tracking - Update worker and dispatcher service logging for consistency - Add logging configuration options to .env.example (LOG_FORMAT, LOG_DIR, LOG_MAX_BYTES, LOG_BACKUP_COUNT) - Improves log parsing, filtering, and correlation for production monitoring47fd0cd
-
feat: notification microservice with per-merchant channel credentials
- WhatsApp (WATI), Email (SMTP), SMS (Twilio), Push (FCM) channels - Credentials fetched from scm_merchant_settings per merchant_id - Redis-backed async worker consuming from notifications:queue - MongoDB persistence for all notifications - REST API: POST /send, /send/batch, /list (projection_list), GET /{id}, POST /{id}/retry - Channel status endpoint per-merchant - Correlation ID middleware, structured JSON logging - K8s-ready Dockerfile9b5416f