Skip to content

Conversation

@macladson
Copy link
Member

Issue Addressed

#7234

Proposed Changes

Removes the Arc<Mutex<_> which was used to store and manage span data and replaces it with the inbuilt Extension for managing span-specific data. This also avoids an unwrap which was used when acquiring the lock over the mutex'd span data.

@eserilev
Copy link
Member

eserilev commented Apr 25, 2025

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 extensions_mut is there a race condition where get_mut returns None for both threads, but one of the threads ends up panicking? I think since we have span usage across async tasks, the race condition might be technically possible?

@jimmygchen jimmygchen added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels May 27, 2025
@macladson macladson added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jun 3, 2025
Copy link
Member

@ackintosh ackintosh left a 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!

Copy link
Member

@michaelsproul michaelsproul left a 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

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jul 22, 2025
mergify bot added a commit that referenced this pull request Jul 22, 2025
@mergify mergify bot merged commit e6089fe into sigp:unstable Jul 22, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants