[FEATURE] Populate status code and delivery attempt information in outgoing webhooks ClickHouse events #5070
Labels
A-Analytics
A-webhooks
Area: Webhook flows
C-feature
Category: Feature request or enhancement
good first issue
Good for newcomers
Description
As of opening this issue, the outgoing webhooks ClickHouse events contain a few fields:
hyperswitch/crates/router/src/events/outgoing_webhook_logs.rs
Lines 11 to 21 in ca61e47
There are
error
andis_error
fields that indicate whether an error occurred when delivering the webhook to the merchant server, but do not include any information on whether the merchant server even received the webhook.To address this issue, we must include the following optional fields in the ClickHouse events:
status_code
delivery_attempt
initial_attempt_id
The fields would have to be added in the
OutgoingWebhookEvent
struct, and the corresponding columns must be added in the ClickHouse table. Once the fields have been added in code, the fields must be populated from theEvent
in the database:delivery_attempt
andinitial_attempt_id
are available directly in theEvent
struct.status_code
field is available within theresponse
struct, if the webhook was delivered to the merchant server.The text was updated successfully, but these errors were encountered: