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
@Ralith Ralith force-pushed the connection-task-spans branch from f57bb29 to a02348d Compare August 17, 2023 17:32
Ralith added 2 commits August 21, 2023 11:05
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 force-pushed the connection-task-spans branch from a02348d to abf5f3f Compare August 21, 2023 18:05
@Ralith Ralith merged commit 6d4830e into main Aug 22, 2023
@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.

3 participants