Automatically pass spans into blocking handles - #8158
Conversation
|
Some required checks have failed. Could you please take a look @eserilev? 🙏 |
96975a7 to
1943507
Compare
jimmygchen
left a comment
There was a problem hiding this comment.
Nice, i think this definitely makes it easier to instrument code that spawns a blocking thread!
I wasn't sure what was the intention of removing some of the spans though, were you thinking to create them in the spawn functions, because we'll lose some traces here.
|
Hi @eserilev, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time. |
|
Hi @eserilev would you mind looking at the review comments and let me know if they make sense? |
|
Thanks @eserilev I'll review this today! |
|
@eserilev sorry for leaving this PR stale again 😂 I'll work on getting this up to date again - there are a few calls in |
…locking-handles # Conflicts: # beacon_node/beacon_chain/src/beacon_chain.rs # beacon_node/beacon_chain/src/canonical_head.rs # beacon_node/beacon_chain/src/fetch_blobs/mod.rs
jimmygchen
left a comment
There was a problem hiding this comment.
I've merged unstable into this branch and applied the changes on a few new code paths. The remaining changes look good!
@eserilev would you mind reviewing my latest changes before we merge this?
Merge Queue Status
This pull request spent 58 minutes 19 seconds in the queue, including 56 minutes 20 seconds running CI. Required conditions to merge
ReasonThe merge conditions cannot be satisfied due to failing checks Failing checks: HintYou may have to fix your CI before adding the pull request to the queue again. |
|
@mergify requeue |
Merge Queue Status
This pull request spent 29 minutes 29 seconds in the queue, including 28 minutes 16 seconds running CI. Required conditions to merge
|
Currently we have to manually pass spans across threads (i.e. during
spawn_blocking_handleinvocations). This PR ensures that the current span is always passed across threads for:spawn_blocking_handlespawn_blocking_with_rayon_asyncspawn_blocking_with_rayonIf there is no current span, nothing will happen