-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix data race in BatchedSpanProcessor #518
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
rghetia
commented
Mar 5, 2020
- fixes data race in BatchedSpanProcessor #517
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.
One questions about the WaitGroup location, but nothing blocking.
} | ||
tp.RegisterSpanProcessor(ssp) | ||
tr := tp.Tracer("BatchSpanProcessorWithOptions") | ||
|
||
generateSpan(t, tr, option) | ||
wg := &sync.WaitGroup{} |
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.
Is there a reason the WaitGroup isn't created and handled in generateSpan
itself?
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.
there is no reason. Moved it to generateSpan.
* fix data race in BatchedSpanProcessor - fixes open-telemetry#517 * fix ci. * fix another test. * move wait group to generateSpan func.