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

Preserve spans in macro invocations #72

Merged
merged 2 commits into from
Apr 16, 2022
Merged

Conversation

trevyn
Copy link
Contributor

@trevyn trevyn commented Apr 15, 2022

Previously, #[track_caller] functions (such as used by panic!) called within stream! invocations would resolve to the macro call site. This PR preserves more span information, so these should now resolve to a more specific location within the user's code.

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

Thanks!

@taiki-e taiki-e merged commit 6b2725f into tokio-rs:master Apr 16, 2022
@trevyn trevyn deleted the preserve_spans branch April 28, 2022 03:20
@taiki-e taiki-e mentioned this pull request Feb 18, 2023
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.

2 participants