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

BugFix: wrong context during many async spans #46

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

tom-pytel
Copy link
Contributor

Found a bug during stress testing with many asynchronous spans with different contexts running concurrently. In that situation some child spans were being assigned wrong parents because of wrong Context at head of asyncState. Removed this redundant and potentially incorrect field and now just getting the current context from the topmost Span on the stack. Also added check for context as well as id to span add to stack in SpanContext.

@kezhenxu94 kezhenxu94 added the bug Something isn't working label Mar 30, 2021
@kezhenxu94 kezhenxu94 added this to the 0.3.0 milestone Mar 30, 2021
@kezhenxu94 kezhenxu94 changed the title fixed wrong context bug during many async spans BugFix: wrong context during many async spans Mar 30, 2021
@kezhenxu94 kezhenxu94 merged commit 912ad72 into apache:master Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants