-
Notifications
You must be signed in to change notification settings - Fork 854
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
Tracer implementing Closable #32
Comments
Tracer
implementing Closable
In OT, It was helpful to close the tracer without knowing the underlying implementation. @bogdandrutu please add |
I think close is not good because the Tracer is shared between multiple threads and race conditions can happen (users need to synchronize the close call, or make sure they close after all the usages of the Tracer). I probably suggest having a "Flush" method if that is needed for tests or for the shutdown hook. Also a good question is if the Flush should be a method on the Tracer implementation or on the main Tracer interface. |
A flush method is ok - essentially we need a way to let remaining |
We need to gather use cases to better understand if Main use case:
|
We do have a shutdown method on the SDK. I think the shutdown belongs to the implementation that is used. |
In OT,
Tracer
implementsClosable
, which lets users flush pendingSpan
s and dispose related resources.Is there any point against this for the new API? I don't see any, but let me know ;)
The text was updated successfully, but these errors were encountered: