diff --git a/services/horizon/CHANGELOG.md b/services/horizon/CHANGELOG.md index f419ef0976..77d5021791 100644 --- a/services/horizon/CHANGELOG.md +++ b/services/horizon/CHANGELOG.md @@ -7,6 +7,7 @@ file. This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fix the issue where the skip-txmeta flag is not being applied in `/transactions/{tx-id}` endpoint ([5523](https://github.com/stellar/go/pull/5523)). +- Fix `horizon_ingest_reap_lookup_tables_duration_seconds` metric which reports the total number of lookup table rows which were reaped ([5528](https://github.com/stellar/go/pull/5528)). ## 22.0.0-rc2 diff --git a/services/horizon/internal/ingest/reap.go b/services/horizon/internal/ingest/reap.go index 63b56de993..01c304c080 100644 --- a/services/horizon/internal/ingest/reap.go +++ b/services/horizon/internal/ingest/reap.go @@ -331,6 +331,7 @@ func (r *lookupTableReaper) deleteOrphanedRows(ctx context.Context) error { } deleteDuration := time.Since(deleteStartTime) totalDeleteDuration += deleteDuration + totalDeleted += rowsDeleted r.rowsReapedByLookupTable.With(prometheus.Labels{"table": table}). Observe(float64(rowsDeleted))