Skip to content
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

feat: improve download observability #10039

Merged
merged 4 commits into from
Aug 3, 2024

Conversation

fgimenez
Copy link
Member

@fgimenez fgimenez commented Aug 2, 2024

Closes: #10018

crates/engine/tree/src/download.rs Outdated Show resolved Hide resolved
@mattsse mattsse added the A-observability Related to tracing, metrics, logs and other observability tools label Aug 2, 2024
@fgimenez fgimenez marked this pull request as ready for review August 2, 2024 19:05
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

cool, one suggestion

Comment on lines 231 to 233
if let Some(pending_event) = self.pop_pending_event() {
return Poll::Ready(pending_event);
}
Copy link
Collaborator

@mattsse mattsse Aug 2, 2024

Choose a reason for hiding this comment

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

maybe emitting here after the if self.set_buffered_blocks.is_empty() {
is problematic

we can move this to the start of the poll function because returning poll will ensure poll is called again and requests are already sent at this point

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, I wanted to emit the events after the first loops to advance existing requests, but emitting these new request events should happen first 👍

@fgimenez fgimenez enabled auto-merge August 3, 2024 07:55
@fgimenez fgimenez added this pull request to the merge queue Aug 3, 2024
Merged via the queue into main with commit e98acdc Aug 3, 2024
32 checks passed
@fgimenez fgimenez deleted the fgimenez/improve-download-observability branch August 3, 2024 08:19
martinezjorge pushed a commit to martinezjorge/reth that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-observability Related to tracing, metrics, logs and other observability tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve download observability
2 participants