Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: metrics for bs tracker #179

Merged
merged 3 commits into from
Jan 16, 2025
Merged

chore: metrics for bs tracker #179

merged 3 commits into from
Jan 16, 2025

Conversation

Lazar955
Copy link
Member

Adds 2 new metrics for bs tracker

closes #172

@Lazar955 Lazar955 requested a review from RafilxTenfen January 15, 2025 15:28
Comment on lines +112 to +116
unbondingTracker: NewTrackedDelegations(),
pendingTracker: NewTrackedDelegations(),
inProgressTracker: NewTrackedDelegations(),
verifiedInsufficientConfTacker: NewTrackedDelegations(),
verifiedNotInChainTracker: NewTrackedDelegations(),
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems quite expensive to keep in memory

Copy link
Contributor

Choose a reason for hiding this comment

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

if we are okay with keeping track of all of this state I am good to approve

Copy link
Member Author

@Lazar955 Lazar955 Jan 16, 2025

Choose a reason for hiding this comment

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

Those 2 extra maps are adding each 1mb per 10k entries, I think we should be fine. Note we are using AddEmptyDelegation for adding

Copy link
Contributor

Choose a reason for hiding this comment

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

good point

Copy link
Contributor

@RafilxTenfen RafilxTenfen left a comment

Choose a reason for hiding this comment

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

utACK

@Lazar955 Lazar955 merged commit 9bd727d into main Jan 16, 2025
13 checks passed
@Lazar955 Lazar955 deleted the lazar/bs-tracker-metrics branch January 16, 2025 13:43
Lazar955 added a commit that referenced this pull request Jan 16, 2025
Adds 2 new metrics for bs tracker

closes #172
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.

staking event watcher extra metrics
2 participants