Skip to content

feat: metrics for when blocks are submitted [ENG-702] #33

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

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

rswanson
Copy link
Member

No description provided.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@rswanson rswanson changed the title feat: metrics for when blocks are submitted feat: metrics for when blocks are submitted [ENG-702] Dec 11, 2024
@rswanson rswanson marked this pull request as ready for review December 11, 2024 22:33
@rswanson rswanson self-assigned this Dec 11, 2024
@dylanlott dylanlott added the enhancement New feature or request label Dec 11, 2024 — with Graphite App
Copy link
Contributor

@dylanlott dylanlott left a comment

Choose a reason for hiding this comment

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

Elapsed block build time is going to be fairly inaccurate because of how few blocks actually are trying to be built. It'll get better once we have some actual traffic on Test Net. For now this is a great start 🎀

@@ -54,6 +56,7 @@ impl TxPoller {
self.seen_txns.entry(*tx.tx_hash()).or_insert_with(|| {
// add to unique transactions
unique.push(tx.clone());
counter!("builder.unique_txs").increment(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we bucket these by block number maybe?

let mut retries = 0;
loop {
match self.handle_inbound(&in_progress).await {
Ok(ControlFlow::Retry) => {
retries += 1;
if retries > 3 {
counter!("builder.building_too_many_retries").increment(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice to have for internal visibility 🔥

@rswanson rswanson merged commit dfa90a0 into main Dec 12, 2024
5 checks passed
@rswanson rswanson deleted the swanny/metrics branch December 12, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants