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

fix: hoist spans into spawn_blocking #362

Merged
merged 1 commit into from
Jun 10, 2022
Merged

fix: hoist spans into spawn_blocking #362

merged 1 commit into from
Jun 10, 2022

Conversation

koivunej
Copy link
Contributor

@koivunej koivunej commented Jun 9, 2022

this will ensure the calling rpc_method=name span will exist in both the async and sync part, should there be need for it. outer async part doesn't need this because it will be entered once more when the poll execution continues.

marking this as a fix even though we probably never witnessed any of these being missing..

this will ensure the calling rpc_method=name span will exist in both the
async and sync part, should there be need for it.

checked that tokio doesn't at least yet provide any context hoisting
like this, but it can wrap the blocking task in it's own span with the
tracing feature.
@koivunej koivunej merged commit 1e44a64 into main Jun 10, 2022
@koivunej koivunej deleted the spans_everywhere branch June 10, 2022 09:24
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.

4 participants