Skip to content

Conversation

@aristidesstaffieri
Copy link
Contributor

Closes #340

What

Adds metric collection for the ingestion phase of processing

Why

To support the initial observability and testing of wallet backend

Known limitations

N/A
Changes to grafana dashboard will be provided once metrics are approved.

Issue that this PR addresses

#340

Checklist

PR Structure

  • It is not possible to break this PR down into smaller PRs.
  • This PR does not mix refactoring changes with feature changes.
  • This PR's title starts with name of package that is most changed in the PR, or all if the changes are broad or impact many packages.

Thoroughness

  • This PR adds tests for the new functionality or fixes.
  • All updated queries have been tested (refer to this check if the data set returned by the updated query is expected to be same as the original one).

Release

  • This is not a breaking change.
  • This is ready to be tested in development.
  • The new functionality is gated with a feature flag if this is not ready for production.

@aristidesstaffieri aristidesstaffieri self-assigned this Oct 20, 2025
@aristidesstaffieri aristidesstaffieri requested a review from a team October 20, 2025 21:33
IncIngestionTransactionsProcessed(count int)
ObserveIngestionBatchSize(size int)
ObserveIngestionParticipantsCount(count int)
ObserveIngestionExistingAccountsCount(count int)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this existing accounts metric makes sense for ingestion since we already track the accounts count using the IncActiveAccount and DecActiveAccount functions. We can remove this particular one from ingestion metric

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed in 7c37008

@aristidesstaffieri aristidesstaffieri merged commit 58d980e into main Nov 6, 2025
9 checks passed
@aristidesstaffieri aristidesstaffieri deleted the feature/ingestion-metrics branch November 6, 2025 17:37
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.

Add metrics for ingestion

3 participants