Skip to content

Add structured log for each indexer batch start and completion with ledger range and event count #648

Description

@Chucks1093

Summary

Each time the indexer processes a batch of ledgers, there is no log marking the start or end of the batch. An info-level log at the start and a debug-level log at completion would give operators a clear picture of indexer throughput and batch size without requiring database queries.

Scope

  • Emit an info-level log at batch start with fields: from_ledger, to_ledger, batch_size
  • Emit a debug-level log at batch completion with fields: from_ledger, to_ledger, events_processed, duration_ms
  • Both logs emitted per batch, not per individual ledger within the batch

Acceptance Criteria

  • Info log emitted at batch start with correct ledger range and batch size
  • Debug log emitted at batch completion with correct event count and duration
  • Logs emitted once per batch, not once per ledger
  • duration_ms reflects wall-clock time from batch start to completion

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