Skip to content

Add structured log for indexer startup showing last processed ledger and sync lag #538

Description

@Chucks1093

Summary

When the indexer starts, operators need to know immediately how far behind it is from the current network ledger. A startup log showing the last processed ledger and the lag in ledgers makes it easy to assess sync state without querying the database.

Scope

  • On indexer startup, emit a structured info log with fields: last_processed_ledger, current_network_ledger, lag_in_ledgers, estimated_catchup_seconds
  • estimated_catchup_seconds calculated as lag_in_ledgers * 5 (5 seconds per ledger)
  • If no ledger has been processed yet emit a warning indicating a fresh start

Acceptance Criteria

  • Startup log emitted with all four fields
  • Fresh start emits a warning instead of info
  • estimated_catchup_seconds is correctly calculated from the lag

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions