-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add timeout to Exporter interface #203
Comments
This is not part of the spec. I think this should go into the spec first we add this. The spec implies that the
This could be set via the exporter constructor (which makes sense, because most likely one wants to have the same timeout for each call to However, I would prefer to leave this to vendor implementors to decide. For some a timeout might not make sense, they might just internally batch spans and asynchronously send those. |
Alright. I see your point. However, if this is left to be vendor-specific, I believe the processor (batch or simple) doesn't need to take this into account in its testing suite, as any exporter could be configured to it? I am talking with regard to #195 (specifically the TestForceFlushTimeout test) in which I have an implementation of the batch processor. |
Yes, that's my understanding. From processor side, you can rely that There can be exporters that are badly implemented and block for a long time. In that instance, the batch processor will have to drop more spans. |
So if I am understanding this correctly, the processor can basically treat the exporter as a blackbox that returns after a certain upper time limit (which is vendor-specific). All we have to do is check how much time it takes for the Is that right? Please correct me if I am wrong. |
This is not in the specs, and so not supported. As @pyohannes mentioned vendor can pass this as an option to the exporter constructor, and implement this timeout implicitly. |
This issue concerns the addition of a
timeout
parameter to the exporter interface's Export function.This can help propagate a timeout from the processor to the configured exporter, and test for timeouts in the exporter's
Export
method as well.Please let me know your thoughts on this.
@reyang @pyohannes
The text was updated successfully, but these errors were encountered: