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

[Execution] Move maxCollectionHeight to metrics #5244

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

zhangchiqing
Copy link
Member

@zhangchiqing zhangchiqing commented Jan 16, 2024

Simplify ingestion engine by moving a metrics-related state var to metrics module.

@zhangchiqing zhangchiqing force-pushed the leo/update-ingestion-metrics branch 2 times, most recently from 12bdb57 to 2113b21 Compare January 16, 2024 23:34
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (f496a55) 55.56% compared to head (d60cc1a) 49.03%.

Files Patch % Lines
module/metrics/execution.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5244      +/-   ##
==========================================
- Coverage   55.56%   49.03%   -6.53%     
==========================================
  Files         995      177     -818     
  Lines       95383    15206   -80177     
==========================================
- Hits        52997     7456   -45541     
+ Misses      38405     7243   -31162     
+ Partials     3981      507    -3474     
Flag Coverage Δ
unittests 49.03% <0.00%> (-6.53%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhangchiqing zhangchiqing marked this pull request as ready for review January 17, 2024 17:42
@zhangchiqing zhangchiqing requested review from janezpodhostnik, sideninja and peterargue and removed request for ramtinms January 20, 2024 05:09
@zhangchiqing zhangchiqing force-pushed the leo/update-ingestion-metrics branch from 2113b21 to 64d592e Compare January 20, 2024 05:10
@@ -950,7 +952,10 @@ func (ec *ExecutionCollector) RuntimeTransactionProgramsCacheHit() {
}

func (ec *ExecutionCollector) UpdateCollectionMaxHeight(height uint64) {
ec.maxCollectionHeight.Set(float64(height))
if height > ec.maxCollectionHeightData {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this use a StrictMonotonousCounter?

@zhangchiqing zhangchiqing force-pushed the leo/update-ingestion-metrics branch from 64d592e to d60cc1a Compare January 22, 2024 19:48
Copy link
Contributor

@janezpodhostnik janezpodhostnik left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -683,11 +681,7 @@ func (e *Engine) addCollectionToMempool(
}

// record collection max height metrics
Copy link
Contributor

Choose a reason for hiding this comment

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

comment might be redundant now, since the code already plainly states the same thing.

@zhangchiqing zhangchiqing added this pull request to the merge queue Jan 24, 2024
Merged via the queue into master with commit 38c825f Jan 24, 2024
51 checks passed
@zhangchiqing zhangchiqing deleted the leo/update-ingestion-metrics branch January 24, 2024 18:24
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.

5 participants