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

Propagate current tracing span to spawned connection drivers #1632

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Aug 15, 2023

Follow-up for #1616, which finally lets us get easily intelligible interleaved logs for single-process tests.

Copy link
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

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

Nice, I did consider searching for all .spawn() calls in the last PR but thought I'd start small. Turns out there's only two so this has everything covered.

quinn/src/tests.rs Outdated Show resolved Hide resolved
For clients, this is the span that was current when the connection
attempt was initiated; for servers, it is the span of the endpoint
task, which is the span that was current when the endpoint was
constructed.
These must enclose the endpoint construction and connect calls.
@Ralith Ralith merged commit 6d4830e into main Aug 22, 2023
8 checks passed
@Ralith Ralith deleted the connection-task-spans branch August 22, 2023 02:10
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.

None yet

3 participants