-
Notifications
You must be signed in to change notification settings - Fork 959
Control span data through tracing Extensions #7239
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
Conversation
|
This looks like a nice simplification to me. I'm trying to think through the different panic scenarios. If theres multiple threads accessing the same spans |
ackintosh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
michaelsproul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; didn't review
Issue Addressed
#7234
Proposed Changes
Removes the
Arc<Mutex<_>which was used to store and manage span data and replaces it with the inbuiltExtensionfor managing span-specific data. This also avoids anunwrapwhich was used when acquiring the lock over the mutex'd span data.