Skip to content

Conversation

@prestwich
Copy link
Member

@prestwich prestwich commented Dec 15, 2025

These are pretty much redundnat with inner spans, so we're downgrading them

Copy link
Member Author

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

@prestwich prestwich marked this pull request as ready for review December 19, 2025 14:09
@prestwich prestwich requested a review from a team as a code owner December 19, 2025 14:09
@prestwich prestwich requested a review from Evalir December 19, 2025 14:10
@prestwich prestwich enabled auto-merge (squash) December 19, 2025 14:10
Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

TIL. this is cool

/// Run a simulation round, returning the best item.
pub async fn sim_round(&mut self, max_gas: u64, max_host_gas: u64) -> Option<SimulatedItem> {
let span = info_span!("sim_round", max_gas, max_host_gas);
let span = trace_span!("sim_round", max_gas, max_host_gas).or_current();
Copy link
Member

Choose a reason for hiding this comment

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

this is neat. avoids the event from happening outside from any span

@prestwich prestwich merged commit 98ce90c into main Dec 19, 2025
7 checks passed
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