Skip to content

feat(indexer): add getLagSnapshot endpoint and corresponding service …#724

Merged
kike-alt merged 2 commits into
kike-alt:mainfrom
PeterOche:feat/indexer-lag-endpoint
May 30, 2026
Merged

feat(indexer): add getLagSnapshot endpoint and corresponding service …#724
kike-alt merged 2 commits into
kike-alt:mainfrom
PeterOche:feat/indexer-lag-endpoint

Conversation

@PeterOche
Copy link
Copy Markdown
Contributor

Summary

Adds an operational monitoring endpoint for indexer lag.

Changes

  • Added GET /indexer/lag in backend/src/indexer/indexer.controller.ts
  • Added getLagSnapshot() in backend/src/indexer/indexer.service.ts
  • Added documented response schema in backend/src/indexer/dto/indexer-lag-response.dto.ts
  • Added tests for service lag calculation and endpoint response shape

Response Includes

  • network + stream cursor snapshot
  • last processed tx hash
  • latest network ledger
  • derived ledger lag
  • replay skip / ingest / error / poll counters

Validation

  • Added endpoint integration test for schema + values
  • Added service test for lag calculation behavior

Notes

  • Did not address unrelated pre-existing backend/test environment issues
  • Local test execution is blocked in this workspace because jest is not installed

closes #638

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@PeterOche Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@kike-alt kike-alt merged commit c836d55 into kike-alt:main May 30, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[W5][BE][M] Add indexer lag endpoint for operational monitoring

3 participants