Skip to content

Add structured log for failed alert threshold check after trade event with error details #510

Description

@Chucks1093

Summary

If the alert threshold check fails after a trade is indexed — for example due to a database error reading the alerts table — that failure should be logged with enough context to replay the check manually without losing the triggering trade event details.

Scope

  • Emit a structured error log when the alert check fails with fields: creator_id, ledger_sequence, new_price, error_message, failed_at
  • Log should be emitted even if the trade write itself succeeded
  • Include enough context that an operator can manually re-run the check for the same creator and price

Acceptance Criteria

  • Error log emitted when alert check fails after successful trade write
  • All five fields present with correct values
  • Log is not emitted when alert check succeeds

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

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