Conversation
|
✅ Deploy Preview for opstack-docs canceled.
|
|
@sebastianst needs a go lint on |
|
Also, all TODO's need linear tickets to pass semgrep. |
|
Hey @sebastianst! This PR has merge conflicts. Please fix them before continuing review. |
66bab91 to
8529542
Compare
8529542 to
2dbcdc2
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #5167 +/- ##
===========================================
- Coverage 41.91% 37.58% -4.34%
===========================================
Files 354 216 -138
Lines 21977 18192 -3785
Branches 776 0 -776
===========================================
- Hits 9212 6837 -2375
+ Misses 12062 10687 -1375
+ Partials 703 668 -35
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
This is looking good |
9e30a15 to
17f13aa
Compare
This is similar to PayloadToBlockRef but takes an interface instead that e.g. a types.Block fulfills. This way, we can directly extract L2BlockRefs from type.Blocks that have a valid L1 Info Deposit tx as first tx. A block could also be converted into an ExecutionPayload, but this would make an inefficient roundtrip, marshalling and unmarshalling all transactions.
The caller of BlockToBatch is sometimes interested in the L1BlockInfo of the block, so instead of re-extracting it again, we just return it here.
RefMetrics are a reusable metrics module to enable block reference metrics.
Reusable event metrics modules.
By removing some code duplication and a more efficient implementation of the MaxRLPBytes test.
61eb165 to
0803ea2
Compare
0803ea2 to
62003a9
Compare
|
Output at |
|
This PR has been added to the merge queue, and will be merged soon. |
|
This PR is next in line to be merged, and will be merged as soon as checks pass. |
Description
This PR adds metrics to the batcher. The following metrics are recorded:
Some metrics are implemented as simple events (like tx success), other contain many data dimensions, like
RecordL2BlocksAdded.Also added info logging of different stats when channels are closed. This has also long been overdue.
Open Tasks
Some open tasks were not done yet as to limit this PR's size.
op-nodemetrics, namelyRefMetricsandEventMetrics, and copied into packageop-service/metrics. The duplicated code should be removed in a follow-up by making theop-nodeuse these.Metadata