-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Investigate how to expose exporterhelper.NewThrottleRetry in the consumererror #7047
Comments
An idea is to merge the current // which contains the data that need to be retried, and the potential `delay` if any.
type consumererror.Retriable[Traces|Metrics|Logs] I am not sure we need an error per signal or we can use generics, or simply have all possible signals as part of the error. Both these options will create a If we do this, we should also include a "failed" uint64 to the |
Side note: the googlecloud exporter likely won't utilize this. The underlying client libraries have relatively intelligent retry mechanisms built-in, and we are in the process of making a fix to the trace retry logic before we switch away from the collector's retry mechanism. But in general, I think #7047 (comment) makes a lot of sense. |
I think an error type per signal that is aliased or extended from a generic base class would keep duplication to a minimum while not requiring users to instantiate the generic types. Just including all possible signals could work, but most types are specific to a signal, so this seems unconventional. Are there any other places where this is done?
I agree about adding a |
No description provided.
The text was updated successfully, but these errors were encountered: