Skip to content

Add structured log for alert registration with creator ID, direction, and target price #505

Description

@Chucks1093

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

  • Registration log emitted with all five fields
  • Cancellation log emitted on manual delete
  • Wallet address masked, callback URL absent from all logs

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