-
Notifications
You must be signed in to change notification settings - Fork 624
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
Check the protected code in SDK Span methods that use self._lock #362
Comments
Span
methods that use self._lock
You linked the Was this intentional? If so, how is this related? |
Yes, because of this. I am a bit surprised by the implementation of the |
Only a SDK.Span is always recording events. A DefaultSpan is not (the SDK returns a default span for spans that are sampled out, for example). Some 3rd party API-implementation may even have a more complex logic to determime if a span is recording events |
So, what's the idea behind having this in the SDK code of |
They currently don't really serve a purpose, I guess. In this case the blame view of the file would have helped you since I commented on that exact issue in the PR that added the ckeck (and is_recording_events): #141 (comment) |
Closing due to inactivity. |
This started when discussing #358, @codeboten and @toumorokoshi raise a valid concern regarding what should and should not be protected by
self._lock
in several methods of the SDKSpan
class.Take a particular good look into this.
The text was updated successfully, but these errors were encountered: