-
Notifications
You must be signed in to change notification settings - Fork 180
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
Conversation
12bdb57
to
2113b21
Compare
Codecov ReportAttention:
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
2113b21
to
64d592e
Compare
module/metrics/execution.go
Outdated
@@ -950,7 +952,10 @@ func (ec *ExecutionCollector) RuntimeTransactionProgramsCacheHit() { | |||
} | |||
|
|||
func (ec *ExecutionCollector) UpdateCollectionMaxHeight(height uint64) { | |||
ec.maxCollectionHeight.Set(float64(height)) | |||
if height > ec.maxCollectionHeightData { |
There was a problem hiding this comment.
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
?
64d592e
to
d60cc1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
engine/execution/ingestion/engine.go
Outdated
@@ -683,11 +681,7 @@ func (e *Engine) addCollectionToMempool( | |||
} | |||
|
|||
// record collection max height metrics |
There was a problem hiding this comment.
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.
Simplify ingestion engine by moving a metrics-related state var to metrics module.