Skip to content

Add structured log for indexer falling behind the chain by more than 50 ledgers #602

Description

@Chucks1093

Summary

When the indexer falls behind the latest ledger by more than 50 ledgers it signals a processing problem, but currently no log is emitted to alert operators. A warning log should be emitted each time the gap is detected above the threshold.

Scope

  • Compare the latest processed ledger to the latest network ledger after each indexer tick
  • If the gap exceeds 50, emit a warning log with fields: latest_processed_ledger, latest_network_ledger, gap, detected_at
  • Log emitted once per tick while the gap persists — not rate-limited to once per gap event
  • Log level: warn

Acceptance Criteria

  • Warning log emitted when gap > 50
  • Log not emitted when gap ≤ 50
  • All four fields present with correct values
  • Log emitted on every tick while gap persists

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