Summary
When a price alert is successfully registered, a structured log entry makes the registration observable without querying the alerts table. It also helps debug cases where an alert fires unexpectedly.
Scope
- Emit a structured info log on successful alert creation with fields:
alert_id, creator_id, direction, target_price, registered_at
- Emit a structured info log on alert deletion (manual cancel) with fields:
alert_id, creator_id, cancelled_at
- Do not log
callback_url or wallet_address raw — mask wallet to first 4 and last 4 chars
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
When a price alert is successfully registered, a structured log entry makes the registration observable without querying the alerts table. It also helps debug cases where an alert fires unexpectedly.
Scope
alert_id,creator_id,direction,target_price,registered_atalert_id,creator_id,cancelled_atcallback_urlorwallet_addressraw — mask wallet to first 4 and last 4 charsAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram