Skip to content

op-node: Add Metrics#12408

Merged
protolambda merged 3 commits intoethereum-optimism:developfrom
trianglesphere:metrics
Nov 20, 2024
Merged

op-node: Add Metrics#12408
protolambda merged 3 commits intoethereum-optimism:developfrom
trianglesphere:metrics

Conversation

@trianglesphere
Copy link
Contributor

Description

This adds one new metric, sequencer_active to report if the sequencer is active or not.

This also modifies transactions_sequenced_total. It is transformed from a Gauge (incorrectly called a counter previously) to a CounterVec. It is labelled with type where the value is l1_info_deposit, deposit, and txns to differentiate the different kinds of transactions.

@trianglesphere trianglesphere requested review from a team as code owners October 10, 2024 16:02
@trianglesphere trianglesphere force-pushed the metrics branch 2 times, most recently from 2d9d378 to 4b1f84f Compare October 10, 2024 16:16
@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.14%. Comparing base (6d36d68) to head (4b1f84f).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12408      +/-   ##
===========================================
- Coverage    64.32%   64.14%   -0.19%     
===========================================
  Files           52       52              
  Lines         4348     4348              
===========================================
- Hits          2797     2789       -8     
- Misses        1376     1385       +9     
+ Partials       175      174       -1     
Flag Coverage Δ
cannon-go-tests 64.14% <ø> (-0.19%) ⬇️

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

see 1 file with indirect coverage changes

@tynes
Copy link
Contributor

tynes commented Oct 11, 2024

These changes are generally good @trianglesphere, thank you. Left a few comments, curious what you think

@trianglesphere
Copy link
Contributor Author

@tynes I cleaned up some of the logic to avoid duplicating code and simplified the deposit count. Ideally we'd be able to split out each type of txn, but having the deposit vs non deposit split already is a big step forward.

@protolambda
Copy link
Contributor

/ci authorize 414e4fb

@protolambda
Copy link
Contributor

/ci authorize 4a60f1b

@protolambda protolambda added this pull request to the merge queue Nov 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 19, 2024
@protolambda protolambda added this pull request to the merge queue Nov 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 20, 2024
@protolambda protolambda added this pull request to the merge queue Nov 20, 2024
Merged via the queue into ethereum-optimism:develop with commit f2056c0 Nov 20, 2024
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.

3 participants