Skip to content

obs: improve spans use in flashbots submit - #165

Merged
dylanlott merged 4 commits into
mainfrom
dylan/flashbots-span
Oct 31, 2025
Merged

dylanlott merged 4 commits into
mainfrom
dylan/flashbots-span

Conversation

@dylanlott

@dylanlott dylanlott commented Oct 23, 2025 •

Copy link
Copy Markdown
Contributor

This PR improves span usage in the Flashbots submit task for better tracking in groundcover and analytics.

Copy link
Copy Markdown
Contributor Author

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

@dylanlott dylanlott changed the title improve spans use in flashbots submit obs: improve spans use in flashbots submit Oct 23, 2025
Comment thread src/tasks/submit/flashbots.rs Resolved
Comment thread src/tasks/submit/flashbots.rs Resolved
Comment thread src/tasks/submit/flashbots.rs Resolved
@dylanlott
dylanlott force-pushed the dylan/flashbots-span branch from 45f8e09 to 8951b43 Compare October 23, 2025 18:00
@dylanlott
dylanlott marked this pull request as ready for review October 23, 2025 18:20
@dylanlott
dylanlott requested a review from Evalir as a code owner October 23, 2025 18:20
Comment thread src/tasks/submit/flashbots.rs Resolved
Comment thread src/tasks/submit/flashbots.rs Resolved
});
let bundle = match result {
Ok(bundle) => bundle,
Err(_) => continue,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this could be further simplified with:

let bundle = match self.prepare(&sim_result)
    .instrument(span.clone())
    .await
    .inspect_err(|error| {
        counter!("signet.builder.flashbots.bundle_prep_failures").increment(1);
        span_debug!(span, %error, "bundle preparation failed");
    }) {
    Ok(bundle) => bundle,
    Err(_) => continue,
};

@prestwich prestwich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

whenever you're happy :)

@dylanlott
dylanlott merged commit 4d6aee1 into main Oct 31, 2025
7 checks passed
@dylanlott
dylanlott deleted the dylan/flashbots-span branch October 31, 2025 18:37

This branch was previously deployed

1 inactive deployment
dev — 92732c3f Deployed Oct 30, 2025 by dylanlott via docker-ecr-push / build and push #149
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