Skip to content

Add structured log for webhook delivery attempt with response status and duration #626

Description

@Chucks1093

Summary

Each webhook delivery attempt (successful or failed) currently produces no structured log. An info-level log on every delivery attempt would give operators visibility into delivery rates and latency without having to query the webhooks table.

Scope

  • Emit an info-level log on every delivery attempt with fields: webhook_id, event_type, attempt_number, response_status, duration_ms, success
  • Callback URL must not appear in the log
  • Log emitted after the HTTP response is received (or after timeout), not before the attempt
  • success is true for 2xx responses, false for all others including timeouts

Acceptance Criteria

  • Log emitted after every delivery attempt
  • All six fields present with correct values
  • Callback URL absent from log
  • success: true for 2xx, success: false for non-2xx and timeouts
  • Log level is info

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions