-
Notifications
You must be signed in to change notification settings - Fork 176
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
Add a Time To Seal metric to access node to track time it takes to seal a transaction #6512
base: master
Are you sure you want to change the base?
Add a Time To Seal metric to access node to track time it takes to seal a transaction #6512
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6512 +/- ##
==========================================
+ Coverage 41.28% 41.53% +0.24%
==========================================
Files 2033 2033
Lines 145981 181785 +35804
==========================================
+ Hits 60269 75501 +15232
- Misses 79486 100055 +20569
- Partials 6226 6229 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
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.
Have few small remarks.
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
module/state_synchronization/indexer/collection_executed_metric.go
Outdated
Show resolved
Hide resolved
…c.go Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
…c.go Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
…c.go Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
} | ||
|
||
// CollectionFinalized tracks collections to mark finalized | ||
func (c *CollectionExecutedMetricImpl) CollectionFinalized(light flow.LightCollection) { | ||
if ti, found := c.collectionsToMarkFinalized.ByID(light.ID()); found { | ||
for _, t := range light.Transactions { | ||
c.accessMetrics.TransactionFinalized(t, ti) | ||
|
||
block, err := c.blocks.ByCollectionID(light.ID()) |
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.
this should be looked up outside of the loop, and the blockID result reused
} | ||
|
||
var err error | ||
collectionExecutedMetricImpl.blockTransactions, err = stdmap.NewIdentifierMap(100) |
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.
let's instantiate and pass this in like the other stdmap.*
objects
Closes: #6448.